summaryrefslogtreecommitdiff
path: root/smmap/test/test_tutorial.py
diff options
context:
space:
mode:
Diffstat (limited to 'smmap/test/test_tutorial.py')
-rw-r--r--smmap/test/test_tutorial.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/smmap/test/test_tutorial.py b/smmap/test/test_tutorial.py
index b03db9b..31c272a 100644
--- a/smmap/test/test_tutorial.py
+++ b/smmap/test/test_tutorial.py
@@ -41,12 +41,6 @@ class TestTutorial(TestBase):
c.buffer()[1:10] # first 9 bytes
c.buffer()[c.size() - 1] # last byte
- # its recommended not to create big slices when feeding the buffer
- # into consumers (e.g. struct or zlib).
- # Instead, either give the buffer directly, or use pythons buffer command.
- from smmap.util import buffer
- buffer(c.buffer(), 1, 9) # first 9 bytes without copying them
-
# you can query absolute offsets, and check whether an offset is included
# in the cursor's data.
assert c.ofs_begin() < c.ofs_end()