Skip to content

Commit 73c4708

Browse files
Fix bytes warnings in test_struct (added in bpo-29802). (#4068)
1 parent db60a5b commit 73c4708

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_struct.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,9 @@ def test_issue29802(self):
614614
# the Struct object was decrefed twice and the reference to
615615
# deallocated object was left in a cache.
616616
with self.assertRaises(TypeError):
617-
struct.unpack(b'b', 0)
617+
struct.unpack('b', 0)
618618
# Shouldn't crash.
619-
self.assertEqual(struct.unpack(b'b', b'a'), (b'a'[0],))
619+
self.assertEqual(struct.unpack('b', b'a'), (b'a'[0],))
620620

621621
def test_format_attr(self):
622622
s = struct.Struct('=i2H')

0 commit comments

Comments
 (0)