From f4f771fe0fd872c5d8ec752a40587e49f4192ff8 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Thu, 12 Jul 2007 20:06:41 +0000 Subject: [PATCH] Fix segfault on Linux. --- Lib/ctypes/test/test_funcptr.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/ctypes/test/test_funcptr.py b/Lib/ctypes/test/test_funcptr.py index 7ea873f0a4d..56099cc89a9 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()