aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_djvu_parse.py
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2021-02-16 20:32:40 +0100
committerbnewbold <bnewbold@robocracy.org>2021-02-23 15:19:48 -0800
commit0d46fb5fac3c7a1268618a3ec0a9956b79fdbeaf (patch)
treefb3b243dd2b228df37bbe3b94a6c54fcbf21ff12 /tests/test_djvu_parse.py
parent537659325664b47b01c24e82cb4a0e850cd129c0 (diff)
downloadfatcat-scholar-0d46fb5fac3c7a1268618a3ec0a9956b79fdbeaf.tar.gz
fatcat-scholar-0d46fb5fac3c7a1268618a3ec0a9956b79fdbeaf.zip
Revert undesirable changes
Diffstat (limited to 'tests/test_djvu_parse.py')
-rw-r--r--tests/test_djvu_parse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_djvu_parse.py b/tests/test_djvu_parse.py
index f661f33..777f8bf 100644
--- a/tests/test_djvu_parse.py
+++ b/tests/test_djvu_parse.py
@@ -5,7 +5,7 @@ from fatcat_scholar.djvu import djvu_extract_leaf_texts
def test_djvu_extract_leaf_texts() -> None:
# https://archive.org/details/ERIC_ED441501
- with open("tests/files/ERIC_ED441501_djvu.xml") as f:
+ with open("tests/files/ERIC_ED441501_djvu.xml", "r") as f:
blob = f.read()
leaves = djvu_extract_leaf_texts(io.StringIO(blob), [3, 6])