diff options
author | Thomas Heller <theller@ctypes.org> | 2007-08-31 09:54:51 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-08-31 09:54:51 (GMT) |
commit | 680d7befc0ba4c179a578b2d3e24b43912e2349e (patch) | |
tree | 9403ffc92845240b9f82f9ebf6886f4036c96989 | |
parent | 4b49131f2bac48850671ca2aad29dc81b3c228b9 (diff) | |
download | cpython-680d7befc0ba4c179a578b2d3e24b43912e2349e.zip cpython-680d7befc0ba4c179a578b2d3e24b43912e2349e.tar.gz cpython-680d7befc0ba4c179a578b2d3e24b43912e2349e.tar.bz2 |
Fix a buggy test. str8 objects contained NUL-terminated strings,
bytes objects don't.
-rw-r--r-- | Lib/ctypes/test/test_memfunctions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_memfunctions.py b/Lib/ctypes/test/test_memfunctions.py index 79804bf..a5b3b15 100644 --- a/Lib/ctypes/test/test_memfunctions.py +++ b/Lib/ctypes/test/test_memfunctions.py @@ -46,7 +46,7 @@ class MemFunctionsTest(unittest.TestCase): 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: |