projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0da4ac1
)
Issue #25498: Update error message for 3.5
author
Martin Panter
<vadmium+py@gmail.com>
Fri, 13 Nov 2015 22:12:58 +0000
(22:12 +0000)
committer
Martin Panter
<vadmium+py@gmail.com>
Fri, 13 Nov 2015 22:12:58 +0000
(22:12 +0000)
Lib/ctypes/test/test_frombuffer.py
patch
|
blob
|
history
diff --git
a/Lib/ctypes/test/test_frombuffer.py
b/Lib/ctypes/test/test_frombuffer.py
index 86954fe61e7898a3743c76702682c024afe2fd8b..29c5a19328c98ba2154dab805e972e105db68bd6 100644
(file)
--- 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)