Skip to content

Commit 4cc4e78

Browse files
committed
Update test_to_Str
Change basestring → six.string_types
1 parent 104186b commit 4cc4e78

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_models.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
import six
23

34
from typecraft_python.models import Text, Phrase, Word, Morpheme, PhraseValidity, GlobalTag, GlobalTagSet, \
45
DEFAULT_TAGSET
@@ -43,10 +44,10 @@ def test_to_str(self):
4344
word_str = str(word)
4445
morpheme_str = str(morpheme)
4546

46-
assert isinstance(text_str, basestring)
47-
assert isinstance(phrase_str, basestring)
48-
assert isinstance(word_str, basestring)
49-
assert isinstance(morpheme_str, basestring)
47+
assert isinstance(text_str, six.string_types)
48+
assert isinstance(phrase_str, six.string_types)
49+
assert isinstance(word_str, six.string_types)
50+
assert isinstance(morpheme_str, six.string_types)
5051

5152

5253
class TestText(object):

0 commit comments

Comments
 (0)