From 52ede05f9de21147dd3e0525b2d2615e250e2411 Mon Sep 17 00:00:00 2001 From: Andreas Grivas Date: Mon, 2 Nov 2015 19:41:30 +0200 Subject: [PATCH] fix naming --- spacy/tests/print/test_print.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/spacy/tests/print/test_print.py b/spacy/tests/print/test_print.py index 744a813d6..4740f44e6 100644 --- a/spacy/tests/print/test_print.py +++ b/spacy/tests/print/test_print.py @@ -36,63 +36,63 @@ def test_repr_doc_unicode(EN): def test_print_span(EN): try: - doc = EN(u'I sat down for coffee at the coffee store')[-3:] - print(doc) + span = EN(u'I sat down for coffee at the coffee store')[-3:] + print(span) except Exception: pytest.fail("Printing failed") def test_repr_span(EN): try: - doc = EN(u'I sat down for coffee at the coffee store')[-3:] - print(repr(doc)) + span = EN(u'I sat down for coffee at the coffee store')[-3:] + print(repr(span)) except Exception: pytest.fail("Printing failed") def test_print_span_unicode(EN): try: - doc = EN(u'I sat down for coffee at the café')[-3:] - print(doc) + span = EN(u'I sat down for coffee at the café')[-3:] + print(span) except Exception: pytest.fail("Printing failed") def test_repr_span_unicode(EN): try: - doc = EN(u'I sat down for coffee at the café')[-3:] - print(repr(doc)) + span = EN(u'I sat down for coffee at the café')[-3:] + print(repr(span)) except Exception: pytest.fail("Printing failed") def test_print_token(EN): try: - doc = EN(u'I sat down for coffee at the coffee store')[-1] - print(doc) + token = EN(u'I sat down for coffee at the coffee store')[-1] + print(token) except Exception: pytest.fail("Printing failed") def test_repr_token(EN): try: - doc = EN(u'I sat down for coffee at the coffee store')[-1] - print(repr(doc)) + token = EN(u'I sat down for coffee at the coffee store')[-1] + print(repr(token)) except Exception: pytest.fail("Printing failed") def test_print_token_unicode(EN): try: - doc = EN(u'I sat down for coffee at the café')[-1] - print(doc) + token = EN(u'I sat down for coffee at the café')[-1] + print(token) except Exception: pytest.fail("Printing failed") def test_repr_token_unicode(EN): try: - doc = EN(u'I sat down for coffee at the café')[-1] - print(repr(doc)) + token = EN(u'I sat down for coffee at the café')[-1] + print(repr(token)) except Exception: pytest.fail("Printing failed")