Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0da4ac1 commit 75559afCopy full SHA for 75559af
1 file changed
Lib/ctypes/test/test_frombuffer.py
@@ -44,7 +44,7 @@ def test_from_buffer(self):
44
(c_char * 16).from_buffer(memoryview(b"a" * 16))
45
with self.assertRaisesRegex(TypeError, "not C contiguous"):
46
(c_char * 16).from_buffer(memoryview(bytearray(b"a" * 16))[::-1])
47
- msg = "does not have the buffer interface"
+ msg = "bytes-like object is required"
48
with self.assertRaisesRegex(TypeError, msg):
49
(c_char * 16).from_buffer("a" * 16)
50
0 commit comments