[Python-checkins] cpython (3.5): Issue #25622: Use repr(bytes) to avoid BytesWarning
martin.panter
python-checkins at python.org
Thu Nov 26 05:45:14 EST 2015
https://hg.python.org/cpython/rev/38f749f0a1bd
changeset: 99368:38f749f0a1bd
branch: 3.5
user: Martin Panter <vadmium+py at gmail.com>
date: Thu Nov 26 02:36:26 2015 +0000
summary:
Issue #25622: Use repr(bytes) to avoid BytesWarning
files:
Lib/ctypes/test/test_values.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/ctypes/test/test_values.py b/Lib/ctypes/test/test_values.py
--- a/Lib/ctypes/test/test_values.py
+++ b/Lib/ctypes/test/test_values.py
@@ -75,7 +75,7 @@
if entry.name in bootstrap_expected:
bootstrap_seen.append(entry.name)
self.assertTrue(entry.size,
- "{} was reported as having no size".format(entry.name))
+ "{!r} was reported as having no size".format(entry.name))
continue
items.append((entry.name, entry.size))
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list