]> granicus.if.org Git - python/commitdiff
Issue #25622: Use repr(bytes) to avoid BytesWarning
authorMartin Panter <vadmium+py@gmail.com>
Thu, 26 Nov 2015 02:36:26 +0000 (02:36 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Thu, 26 Nov 2015 02:36:26 +0000 (02:36 +0000)
Lib/ctypes/test/test_values.py

index b018ca301360282cda34d4947da9f6ea9fc469dc..c7c78ce4e59fe07661d4ce14ce0adf66413db531 100644 (file)
@@ -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))