pull/771/head
GeorgianaElena 2019-08-30 11:26:48 +03:00
rodzic 5e4932b704
commit 75f4a70fec
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -115,12 +115,13 @@ def test_normalize_doi():
def test_open_guess_encoding():
data = "Rică nu știa să zică râu, rățușcă, rămurică."
with tempfile.NamedTemporaryFile(mode='wb') as test_file:
with tempfile.NamedTemporaryFile(mode="wb") as test_file:
test_file.write(str.encode(data, "utf-16"))
test_file.seek(0)
with utils.open_guess_encoding(test_file.name) as fd:
assert fd.read() == data
@pytest.mark.parametrize(
"req, is_local",
[