diff options
author | Thomas Heller <theller@ctypes.org> | 2007-07-12 19:54:27 +0000 |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-07-12 19:54:27 +0000 |
commit | 70cc9ba8c7e7718d467b3d4e438b548a5c7e9674 (patch) | |
tree | d14ed8d81f168b4a75342aed7a45e31af79db24b /Lib/ctypes/test/test_random_things.py | |
parent | f0f57494b697258d7e6c3c890ba6fbf69e8b14e7 (diff) | |
download | cpython-70cc9ba8c7e7718d467b3d4e438b548a5c7e9674.tar.gz |
Simple fixes.
Diffstat (limited to 'Lib/ctypes/test/test_random_things.py')
-rw-r--r-- | Lib/ctypes/test/test_random_things.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ctypes/test/test_random_things.py b/Lib/ctypes/test/test_random_things.py index 12b4e62a19..e83f59c852 100644 --- a/Lib/ctypes/test/test_random_things.py +++ b/Lib/ctypes/test/test_random_things.py @@ -17,7 +17,7 @@ if sys.platform == "win32": windll.kernel32.GetProcAddress.argtypes = c_void_p, c_char_p windll.kernel32.GetProcAddress.restype = c_void_p - hdll = windll.kernel32.LoadLibraryA("kernel32") + hdll = windll.kernel32.LoadLibraryA(b"kernel32") funcaddr = windll.kernel32.GetProcAddress(hdll, "GetModuleHandleA") self.failUnlessEqual(call_function(funcaddr, (None,)), @@ -69,7 +69,7 @@ class CallbackTracbackTestCase(unittest.TestCase): out = self.capture_stderr(cb, "spam") self.failUnlessEqual(out.splitlines()[-1], "TypeError: " - "unsupported operand type(s) for /: 'int' and 'str'") + "unsupported operand type(s) for /: 'int' and 'str8'") if __name__ == '__main__': unittest.main() |