Skip to content

Commit 960cbc5

Browse files
committed
Remove buffer usage from TestTutorial.test_example
1 parent 812ad85 commit 960cbc5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

smmap/test/test_tutorial.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ def test_example(self):
4141
c.buffer()[1:10] # first 9 bytes
4242
c.buffer()[c.size() - 1] # last byte
4343

44-
# its recommended not to create big slices when feeding the buffer
45-
# into consumers (e.g. struct or zlib).
46-
# Instead, either give the buffer directly, or use pythons buffer command.
47-
from smmap.util import buffer
48-
buffer(c.buffer(), 1, 9) # first 9 bytes without copying them
49-
5044
# you can query absolute offsets, and check whether an offset is included
5145
# in the cursor's data.
5246
assert c.ofs_begin() < c.ofs_end()

0 commit comments

Comments
 (0)