summaryrefslogtreecommitdiff
path: root/tests/test_intersphinx.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_intersphinx.py')
-rw-r--r--tests/test_intersphinx.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_intersphinx.py b/tests/test_intersphinx.py
index 9ed9fe688..dd71c6fbd 100644
--- a/tests/test_intersphinx.py
+++ b/tests/test_intersphinx.py
@@ -12,7 +12,7 @@
import zlib
import posixpath
-import six
+from six import BytesIO
from docutils import nodes
from sphinx import addnodes
@@ -45,7 +45,7 @@ a term std:term -1 glossary.html#term-a-term -
def test_read_inventory_v1():
- f = six.BytesIO(inventory_v1)
+ f = BytesIO(inventory_v1)
f.readline()
invdata = read_inventory_v1(f, '/util', posixpath.join)
assert invdata['py:module']['module'] == \
@@ -55,12 +55,12 @@ def test_read_inventory_v1():
def test_read_inventory_v2():
- f = six.BytesIO(inventory_v2)
+ f = BytesIO(inventory_v2)
f.readline()
invdata1 = read_inventory_v2(f, '/util', posixpath.join)
# try again with a small buffer size to test the chunking algorithm
- f = six.BytesIO(inventory_v2)
+ f = BytesIO(inventory_v2)
f.readline()
invdata2 = read_inventory_v2(f, '/util', posixpath.join, bufsize=5)