diff options
author | Thomas Heller <theller@ctypes.org> | 2007-07-12 19:38:33 +0000 |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-07-12 19:38:33 +0000 |
commit | b39872149d67a4545e46da9d074069e0bc6f5395 (patch) | |
tree | ef82a3dd6c355c33f4de221eb714ee8b8a6af7e9 /Lib/ctypes/test/test_prototypes.py | |
parent | f4c2b396f3305536b38fcc6cc633be3310e15ad7 (diff) | |
download | cpython-b39872149d67a4545e46da9d074069e0bc6f5395.tar.gz |
c_void_p.from_param accepts bytes. Fix test_prototypes.
Diffstat (limited to 'Lib/ctypes/test/test_prototypes.py')
-rw-r--r-- | Lib/ctypes/test/test_prototypes.py | 2 |
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))) |