Skip to content

Commit 4335acb

Browse files
committed
Complete test_repeat_singleton()
1 parent ef2fa40 commit 4335acb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Lib/test/test_bytes.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,9 +1441,9 @@ class SubBytes(bytes):
14411441
@support.cpython_only
14421442
def test_repeat_singleton(self):
14431443
for b in b'', b'x', b"abc":
1444-
for repeat in (0, -23):
1445-
self.assertIs(b * repeat, b'')
1446-
self.assertIs(self.type2test(b) * repeat, b'')
1444+
self.assertIs(b * 1, b)
1445+
self.assertIs(b * 0, b'')
1446+
self.assertIs(b * -23, b'')
14471447

14481448

14491449
class ByteArrayTest(BaseBytesTest, unittest.TestCase):

0 commit comments

Comments
 (0)