[Python-checkins] cpython (3.5): Issue #25498: Update error message for 3.5

martin.panter python-checkins at python.org
Fri Nov 13 17:20:11 EST 2015


https://hg.python.org/cpython/rev/deb0fb601191
changeset:   99112:deb0fb601191
branch:      3.5
user:        Martin Panter <vadmium+py at gmail.com>
date:        Fri Nov 13 22:12:58 2015 +0000
summary:
  Issue #25498: Update error message for 3.5

files:
  Lib/ctypes/test/test_frombuffer.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/ctypes/test/test_frombuffer.py b/Lib/ctypes/test/test_frombuffer.py
--- a/Lib/ctypes/test/test_frombuffer.py
+++ b/Lib/ctypes/test/test_frombuffer.py
@@ -44,7 +44,7 @@
             (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)
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list