summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_getargs2.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-06-24 22:08:25 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-06-24 22:08:25 (GMT)
commit4aae1ebab2cab2a4df1ed89b9454f3c88642530e (patch)
tree329078b4b66ab0accb1a7fef7e0ca1ac586989e8 /Lib/test/test_getargs2.py
parent2f7105dde7a01b85640aefb92e8131c02c82e954 (diff)
downloadcpython-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.py2
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))