Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75559af

Browse files
committed
Issue #25498: Update error message for 3.5
1 parent 0da4ac1 commit 75559af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/ctypes/test/test_frombuffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_from_buffer(self):
4444
(c_char * 16).from_buffer(memoryview(b"a" * 16))
4545
with self.assertRaisesRegex(TypeError, "not C contiguous"):
4646
(c_char * 16).from_buffer(memoryview(bytearray(b"a" * 16))[::-1])
47-
msg = "does not have the buffer interface"
47+
msg = "bytes-like object is required"
4848
with self.assertRaisesRegex(TypeError, msg):
4949
(c_char * 16).from_buffer("a" * 16)
5050

0 commit comments

Comments
 (0)