From 256c7ba7cb0bcde7544f702d2a9a135c28e5fbad Mon Sep 17 00:00:00 2001 From: kadarakos Date: Mon, 7 Nov 2022 14:09:34 +0000 Subject: [PATCH] minor touch up --- spacy/tests/test_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/tests/test_cli.py b/spacy/tests/test_cli.py index 11a8ab001..65e84af12 100644 --- a/spacy/tests/test_cli.py +++ b/spacy/tests/test_cli.py @@ -860,7 +860,7 @@ def test_span_length_freq_dist_output_must_be_correct(): def test_applycli_empty_dir(): with make_tempdir() as data_path: - output = os.path.join(data_path, "test.spacy") + output = os.path.join(data_path / "test.spacy") apply(data_path, output, "blank:en", 1, 1) @@ -917,6 +917,7 @@ def test_applycli_mixed(): with open(data_path / "test.txt", "w") as ftest: ftest.write(text) apply(data_path, output, "blank:en", 1, 1) + # Check whether it worked result = list(DocBin().from_disk(output).get_docs(nlp.vocab)) assert len(result) == 3 for doc in result: