Skip to content

Commit 8d91a8f

Browse files
authored
increase test coverage
1 parent b4aa436 commit 8d91a8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_memoryview.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,10 @@ def test_boolean_format(self):
666666
self.assertEqual(m2b.tolist(), [True, True, True])
667667
self.assertEqual(m2a, m2b)
668668

669+
allbytes = bytes(x for x in range(256))
670+
allbytes = memoryview(allbytes).cast('?')
671+
self.assertEqual(allbytes.tolist(), [False] + [True] * 255)
672+
669673

670674
class BytesMemorySliceTest(unittest.TestCase,
671675
BaseMemorySliceTests, BaseBytesMemoryTests):

0 commit comments

Comments
 (0)