Skip to content

Commit 077e36a

Browse files
committed
Issue #25622: Use repr(bytes) to avoid BytesWarning
1 parent 7b2eb81 commit 077e36a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/ctypes/test/test_values.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class struct_frozen(Structure):
7575
if entry.name in bootstrap_expected:
7676
bootstrap_seen.append(entry.name)
7777
self.assertTrue(entry.size,
78-
"{} was reported as having no size".format(entry.name))
78+
"{!r} was reported as having no size".format(entry.name))
7979
continue
8080
items.append((entry.name, entry.size))
8181

0 commit comments

Comments
 (0)