summaryrefslogtreecommitdiff
path: root/Lib/ctypes/test/test_random_things.py
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-07-12 19:54:27 +0000
committerThomas Heller <theller@ctypes.org>2007-07-12 19:54:27 +0000
commit70cc9ba8c7e7718d467b3d4e438b548a5c7e9674 (patch)
treed14ed8d81f168b4a75342aed7a45e31af79db24b /Lib/ctypes/test/test_random_things.py
parentf0f57494b697258d7e6c3c890ba6fbf69e8b14e7 (diff)
downloadcpython-70cc9ba8c7e7718d467b3d4e438b548a5c7e9674.tar.gz
Simple fixes.
Diffstat (limited to 'Lib/ctypes/test/test_random_things.py')
-rw-r--r--Lib/ctypes/test/test_random_things.py4
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()