Use sequence repetition instead of bytes constructor with integer argument.

This commit is contained in:
Serhiy Storchaka 2016-09-11 14:41:02 +03:00
parent ab8740058a
commit 5f1a5187f7
12 changed files with 20 additions and 20 deletions

View file

@ -59,7 +59,7 @@ class BufferSizeTest:
self.drive_one(b"1234567890\00\01\02\03\04\05\06")
def test_nullpat(self):
self.drive_one(bytes(1000))
self.drive_one(b'\0' * 1000)
class CBufferSizeTest(BufferSizeTest, unittest.TestCase):