summaryrefslogtreecommitdiff
path: root/Lib/ctypes
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-11-26 02:36:26 +0000
committerMartin Panter <vadmium+py@gmail.com>2015-11-26 02:36:26 +0000
commit1d2b0b6f7f91e54f21cdc8c3360b7cb17632c1f8 (patch)
treefa39d9329d15d50dee53b857c5a3c0932d7aefa4 /Lib/ctypes
parentc209e7e2e964e7595b1b988a8cac49074267f6b4 (diff)
downloadcpython-1d2b0b6f7f91e54f21cdc8c3360b7cb17632c1f8.tar.gz
Issue #25622: Use repr(bytes) to avoid BytesWarning
Diffstat (limited to 'Lib/ctypes')
-rw-r--r--Lib/ctypes/test/test_values.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_values.py b/Lib/ctypes/test/test_values.py
index b018ca3013..c7c78ce4e5 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))