summaryrefslogtreecommitdiff
path: root/Lib/ctypes
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-11-13 22:12:58 +0000
committerMartin Panter <vadmium+py@gmail.com>2015-11-13 22:12:58 +0000
commitbbe7570f91fa9f8cdb4b5a747d628e38980b3c2f (patch)
tree1892a03b184736c37604efad164b112534b0427b /Lib/ctypes
parent0987aabb36fb39866172fe7f8420cdc54d7d9871 (diff)
downloadcpython-bbe7570f91fa9f8cdb4b5a747d628e38980b3c2f.tar.gz
Issue #25498: Update error message for 3.5
Diffstat (limited to 'Lib/ctypes')
-rw-r--r--Lib/ctypes/test/test_frombuffer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_frombuffer.py b/Lib/ctypes/test/test_frombuffer.py
index 86954fe61e..29c5a19328 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)