We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e4932b commit 75f4a70Copy full SHA for 75f4a70
tests/unit/test_utils.py
@@ -115,12 +115,13 @@ def test_normalize_doi():
115
116
def test_open_guess_encoding():
117
data = "Rică nu știa să zică râu, rățușcă, rămurică."
118
- with tempfile.NamedTemporaryFile(mode='wb') as test_file:
+ with tempfile.NamedTemporaryFile(mode="wb") as test_file:
119
test_file.write(str.encode(data, "utf-16"))
120
test_file.seek(0)
121
with utils.open_guess_encoding(test_file.name) as fd:
122
assert fd.read() == data
123
124
+
125
@pytest.mark.parametrize(
126
"req, is_local",
127
[
0 commit comments