summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-07-12 20:06:41 (GMT)
committerThomas Heller <theller@ctypes.org>2007-07-12 20:06:41 (GMT)
commitf4f771fe0fd872c5d8ec752a40587e49f4192ff8 (patch)
treeac9bb83a14d39b814ba84df44b07080f42a52276
parent8750384dbc9ceeaab754e9738f0c5150e7c847eb (diff)
downloadcpython-f4f771fe0fd872c5d8ec752a40587e49f4192ff8.zip
cpython-f4f771fe0fd872c5d8ec752a40587e49f4192ff8.tar.gz
cpython-f4f771fe0fd872c5d8ec752a40587e49f4192ff8.tar.bz2
Fix segfault on Linux.
-rw-r--r--Lib/ctypes/test/test_funcptr.py8
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()