Author: thomas.heller Date: Thu Jul 12 22:06:41 2007 New Revision: 56337 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_funcptr.py Log: Fix segfault on Linux.
Modified: python/branches/py3k-struni/Lib/ctypes/test/test_funcptr.py ============================================================================== --- python/branches/py3k-struni/Lib/ctypes/test/test_funcptr.py (original) +++ python/branches/py3k-struni/Lib/ctypes/test/test_funcptr.py Thu Jul 12 22:06:41 2007 @@ -118,10 +118,10 @@ ## 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() _______________________________________________ Python-3000-checkins mailing list Python-3000-checkins@python.org http://mail.python.org/mailman/listinfo/python-3000-checkins