From 1d2b0b6f7f91e54f21cdc8c3360b7cb17632c1f8 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Thu, 26 Nov 2015 02:36:26 +0000 Subject: Issue #25622: Use repr(bytes) to avoid BytesWarning --- Lib/ctypes/test/test_values.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/ctypes') 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)) -- cgit v1.2.1