summaryrefslogtreecommitdiff
path: root/Lib/ctypes/test/test_prototypes.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/ctypes/test/test_prototypes.py')
-rw-r--r--Lib/ctypes/test/test_prototypes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_prototypes.py b/Lib/ctypes/test/test_prototypes.py
index b14d2d8690..91b7e0da7d 100644
--- a/Lib/ctypes/test/test_prototypes.py
+++ b/Lib/ctypes/test/test_prototypes.py
@@ -104,7 +104,7 @@ class CharPointersTestCase(unittest.TestCase):
func.argtypes = c_void_p,
self.failUnlessEqual(None, func(None))
- self.failUnlessEqual("123", func("123"))
+ self.failUnlessEqual("123", func(b"123"))
self.failUnlessEqual("123", func(c_char_p("123")))
self.failUnlessEqual(None, func(c_char_p(None)))