From: Martin Panter Date: Thu, 26 Nov 2015 02:36:26 +0000 (+0000) Subject: Issue #25622: Use repr(bytes) to avoid BytesWarning X-Git-Tag: v3.6.0a1~980^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=077e36af2517f609193db682250d072bb70c3fc4;p=thirdparty%2FPython%2Fcpython.git Issue #25622: Use repr(bytes) to avoid BytesWarning --- diff --git a/Lib/ctypes/test/test_values.py b/Lib/ctypes/test/test_values.py index b018ca301360..c7c78ce4e59f 100644 --- a/Lib/ctypes/test/test_values.py +++ b/Lib/ctypes/test/test_values.py @@ -75,7 +75,7 @@ class PythonValuesTestCase(unittest.TestCase): 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))