diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-24 22:08:25 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-24 22:08:25 (GMT) |
commit | 4aae1ebab2cab2a4df1ed89b9454f3c88642530e (patch) | |
tree | 329078b4b66ab0accb1a7fef7e0ca1ac586989e8 /Lib/test/test_getargs2.py | |
parent | 2f7105dde7a01b85640aefb92e8131c02c82e954 (diff) | |
download | cpython-4aae1ebab2cab2a4df1ed89b9454f3c88642530e.zip cpython-4aae1ebab2cab2a4df1ed89b9454f3c88642530e.tar.gz cpython-4aae1ebab2cab2a4df1ed89b9454f3c88642530e.tar.bz2 |
Issue #8949: "z" format of PyArg_Parse*() functions doesn't accept bytes
objects, as described in the documentation.
Diffstat (limited to 'Lib/test/test_getargs2.py')
-rw-r--r-- | Lib/test/test_getargs2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_getargs2.py b/Lib/test/test_getargs2.py index 7186f55..5ade2b4 100644 --- a/Lib/test/test_getargs2.py +++ b/Lib/test/test_getargs2.py @@ -325,7 +325,7 @@ class Bytes_TestCase(unittest.TestCase): from _testcapi import getargs_z self.assertEqual(getargs_z('abc\xe9'), b'abc\xc3\xa9') self.assertRaises(TypeError, getargs_z, 'nul:\0') - self.assertEqual(getargs_z(b'bytes'), b'bytes') + self.assertRaises(TypeError, getargs_z, b'bytes') self.assertRaises(TypeError, getargs_z, bytearray(b'bytearray')) self.assertRaises(TypeError, getargs_z, memoryview(b'memoryview')) self.assertIsNone(getargs_z(None)) |