diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-12-06 09:16:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 09:16:24 (GMT) |
commit | 3ffa8b9ba190101f674a0e524e482a83ed09cccd (patch) | |
tree | 3f428419dfb3e5a9a244e95ec9924ed36308208a /Lib | |
parent | 9dfc754d61c55a526304e10a328bad448efa9ee9 (diff) | |
download | cpython-3ffa8b9ba190101f674a0e524e482a83ed09cccd.zip cpython-3ffa8b9ba190101f674a0e524e482a83ed09cccd.tar.gz cpython-3ffa8b9ba190101f674a0e524e482a83ed09cccd.tar.bz2 |
bpo-35384: The repr of ctypes.CArgObject no longer fails for non-ascii character. (GH-10863)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ctypes/test/test_bytes.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/ctypes/test/test_bytes.py b/Lib/ctypes/test/test_bytes.py index 20fa056..092ec5a 100644 --- a/Lib/ctypes/test/test_bytes.py +++ b/Lib/ctypes/test/test_bytes.py @@ -12,6 +12,7 @@ class BytesTest(unittest.TestCase): x.value = "y" c_char.from_param(b"x") self.assertRaises(TypeError, c_char.from_param, "x") + self.assertIn('xbd', repr(c_char.from_param(b"\xbd"))) (c_char * 3)(b"a", b"b", b"c") self.assertRaises(TypeError, c_char * 3, "a", "b", "c") |