aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_djvu_parse.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-05-16 19:52:17 -0700
committerBryan Newbold <bnewbold@archive.org>2020-05-16 19:55:17 -0700
commit0abb779be2cd6fc913f3c57d891b040b40baf6c3 (patch)
tree7fe8f572963bbfd19e34fde1270b2d2aa82ed49f /tests/test_djvu_parse.py
parent0d9c230bd74a94006a6ff9e9e32be7ea8a6b51ac (diff)
downloadfatcat-scholar-0abb779be2cd6fc913f3c57d891b040b40baf6c3.tar.gz
fatcat-scholar-0abb779be2cd6fc913f3c57d891b040b40baf6c3.zip
initial progress on work pipeline
Diffstat (limited to 'tests/test_djvu_parse.py')
-rw-r--r--tests/test_djvu_parse.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_djvu_parse.py b/tests/test_djvu_parse.py
index 66c2804..abf5a4c 100644
--- a/tests/test_djvu_parse.py
+++ b/tests/test_djvu_parse.py
@@ -1,5 +1,5 @@
-from io import StringIO
+import io
from fatcat_scholar.djvu import djvu_extract_leaf_texts
@@ -9,7 +9,7 @@ def test_djvu_extract_leaf_texts():
with open('tests/files/ERIC_ED441501_djvu.xml', 'r') as f:
blob = f.read()
- leaves = djvu_extract_leaf_texts(StringIO(blob), [3,6])
+ leaves = djvu_extract_leaf_texts(io.StringIO(blob), [3,6])
assert 3 in leaves
assert 6 in leaves
assert "2. Original cataloging tools" in leaves[3]