summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2021-01-23 21:42:41 -0600
committerHarmon <Harmon758@gmail.com>2021-01-23 21:42:41 -0600
commit960cbc5b01aafe4d0b1706ab236d40d1125e05ac (patch)
tree952f47570a4c2450730920d2972e8a00855a356a
parent812ad85acd3eda5b1d6dc5aa837d390a72ce1538 (diff)
downloadsmmap-960cbc5b01aafe4d0b1706ab236d40d1125e05ac.tar.gz
Remove buffer usage from TestTutorial.test_example
-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()