diff options
author | Thomas Heller <theller@ctypes.org> | 2007-07-12 20:06:41 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-07-12 20:06:41 (GMT) |
commit | f4f771fe0fd872c5d8ec752a40587e49f4192ff8 (patch) | |
tree | ac9bb83a14d39b814ba84df44b07080f42a52276 /Lib | |
parent | 8750384dbc9ceeaab754e9738f0c5150e7c847eb (diff) | |
download | cpython-f4f771fe0fd872c5d8ec752a40587e49f4192ff8.zip cpython-f4f771fe0fd872c5d8ec752a40587e49f4192ff8.tar.gz cpython-f4f771fe0fd872c5d8ec752a40587e49f4192ff8.tar.bz2 |
Fix segfault on Linux.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ctypes/test/test_funcptr.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/ctypes/test/test_funcptr.py b/Lib/ctypes/test/test_funcptr.py index 7ea873f..56099cc 100644 --- a/Lib/ctypes/test/test_funcptr.py +++ b/Lib/ctypes/test/test_funcptr.py @@ -118,10 +118,10 @@ class CFuncPtrTestCase(unittest.TestCase): ## b.value = s ## b = c_string(s) - self.failUnlessEqual(strtok(b, "\n"), "a") - self.failUnlessEqual(strtok(None, "\n"), "b") - self.failUnlessEqual(strtok(None, "\n"), "c") - self.failUnlessEqual(strtok(None, "\n"), None) + self.failUnlessEqual(strtok(b, b"\n"), "a") + self.failUnlessEqual(strtok(None, b"\n"), "b") + self.failUnlessEqual(strtok(None, b"\n"), "c") + self.failUnlessEqual(strtok(None, b"\n"), None) if __name__ == '__main__': unittest.main() |