summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-07-12 19:38:33 (GMT)
committerThomas Heller <theller@ctypes.org>2007-07-12 19:38:33 (GMT)
commit3821e31d19343ff8694f6e2c86c12c0dcd127527 (patch)
treea06791f060a16c02b29298bdef398af5a503185e /Lib/ctypes
parent3d79dd9edf3cfdffd1dc7d4e45b77da2478e1111 (diff)
downloadcpython-3821e31d19343ff8694f6e2c86c12c0dcd127527.zip
cpython-3821e31d19343ff8694f6e2c86c12c0dcd127527.tar.gz
cpython-3821e31d19343ff8694f6e2c86c12c0dcd127527.tar.bz2
c_void_p.from_param accepts bytes. Fix test_prototypes.
Diffstat (limited to 'Lib/ctypes')
-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 b14d2d8..91b7e0d 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)))