Commits

Thomas Heller  committed 1126e7e

Fix a buggy test. str8 objects contained NUL-terminated strings,
bytes objects don't.

  • Participants
  • Parent commits a12a02b

Comments (0)

Files changed (1)

File Lib/ctypes/test/test_memfunctions.py

         self.failUnlessEqual(2, sys.getrefcount(s))
         self.failUnless(s, "foo bar")
 
-        self.failUnlessEqual(string_at(b"foo bar", 8), "foo bar\0")
+        self.failUnlessEqual(string_at(b"foo bar", 7), "foo bar")
         self.failUnlessEqual(string_at(b"foo bar", 3), "foo")
 
     try: