diff options
author | Martin Panter <vadmium+py@gmail.com> | 2015-11-13 22:12:58 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2015-11-13 22:12:58 (GMT) |
commit | 75559affad77d929ab8a87da226f080ec7b59dbd (patch) | |
tree | 5987569c8a8f6c03a64986ce558005c29a258dc0 /Lib/ctypes | |
parent | 0da4ac1f21d84bf147353122db2510b90a99d316 (diff) | |
download | cpython-75559affad77d929ab8a87da226f080ec7b59dbd.zip cpython-75559affad77d929ab8a87da226f080ec7b59dbd.tar.gz cpython-75559affad77d929ab8a87da226f080ec7b59dbd.tar.bz2 |
Issue #25498: Update error message for 3.5
Diffstat (limited to 'Lib/ctypes')
-rw-r--r-- | Lib/ctypes/test/test_frombuffer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_frombuffer.py b/Lib/ctypes/test/test_frombuffer.py index 86954fe..29c5a19 100644 --- a/Lib/ctypes/test/test_frombuffer.py +++ b/Lib/ctypes/test/test_frombuffer.py @@ -44,7 +44,7 @@ class Test(unittest.TestCase): (c_char * 16).from_buffer(memoryview(b"a" * 16)) with self.assertRaisesRegex(TypeError, "not C contiguous"): (c_char * 16).from_buffer(memoryview(bytearray(b"a" * 16))[::-1]) - msg = "does not have the buffer interface" + msg = "bytes-like object is required" with self.assertRaisesRegex(TypeError, msg): (c_char * 16).from_buffer("a" * 16) |