summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-07-20 08:02:22 -0400
committerTim Graham <timograham@gmail.com>2015-07-20 08:19:47 -0400
commit6e3fe089dd4461731149f3621e61b831bf3c0db7 (patch)
treec87f9b325c9738dfc2036d927306969284f4cbe6 /tests
parentecf4ed246ae192f8d381b799b921a892fd7afa85 (diff)
Replaced six.BytesIO with io.BytesIO
Diffstat (limited to 'tests')
-rw-r--r--tests/file_uploads/tests.py3
-rw-r--r--tests/servers/test_basehttp.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/file_uploads/tests.py b/tests/file_uploads/tests.py
index e6814aacdf..2fe1499738 100644
--- a/tests/file_uploads/tests.py
+++ b/tests/file_uploads/tests.py
@@ -9,6 +9,7 @@ import os
import shutil
import tempfile as sys_tempfile
import unittest
+from io import BytesIO
from django.core.files import temp as tempfile
from django.core.files.uploadedfile import SimpleUploadedFile
@@ -16,7 +17,7 @@ from django.http.multipartparser import MultiPartParser, parse_header
from django.test import SimpleTestCase, TestCase, client, override_settings
from django.utils.encoding import force_bytes
from django.utils.http import urlquote
-from django.utils.six import PY2, BytesIO, StringIO
+from django.utils.six import PY2, StringIO
from . import uploadhandler
from .models import FileModel
diff --git a/tests/servers/test_basehttp.py b/tests/servers/test_basehttp.py
index 91dcaa17d9..b9008be8e8 100644
--- a/tests/servers/test_basehttp.py
+++ b/tests/servers/test_basehttp.py
@@ -1,9 +1,10 @@
+from io import BytesIO
+
from django.core.handlers.wsgi import WSGIRequest
from django.core.servers.basehttp import WSGIRequestHandler
from django.test import SimpleTestCase
from django.test.client import RequestFactory
from django.test.utils import captured_stderr
-from django.utils.six import BytesIO
class Stub(object):