mirror of
https://github.com/python/cpython.git
synced 2025-09-13 20:27:05 +00:00
Issue #25498: Update error message for 3.5
This commit is contained in:
parent
0da4ac1f21
commit
75559affad
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue