summaryrefslogtreecommitdiff
path: root/tests/test_intl.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_intl.py')
-rw-r--r--tests/test_intl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_intl.py b/tests/test_intl.py
index 3f25050c5..b4ce96449 100644
--- a/tests/test_intl.py
+++ b/tests/test_intl.py
@@ -16,12 +16,12 @@ import re
from subprocess import Popen, PIPE
from xml.etree import ElementTree
-import six
+from six import StringIO, string_types
from util import test_roots, path, with_app, SkipTest
-warnfile = six.StringIO()
+warnfile = StringIO()
root = test_roots / 'test-intl'
doctreedir = root / '_build' / 'doctree'
@@ -77,7 +77,7 @@ def elem_gettexts(elem):
# this function copied from Python-2.7 'ElementTree.itertext'.
# for compatibility to Python-2.6
tag = self.tag
- if not isinstance(tag, six.string_types) and tag is not None:
+ if not isinstance(tag, string_types) and tag is not None:
return
if self.text:
yield self.text