diff options
| author | Tim Graham <timograham@gmail.com> | 2015-07-20 08:02:22 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-07-20 08:19:47 -0400 |
| commit | 6e3fe089dd4461731149f3621e61b831bf3c0db7 (patch) | |
| tree | c87f9b325c9738dfc2036d927306969284f4cbe6 /tests | |
| parent | ecf4ed246ae192f8d381b799b921a892fd7afa85 (diff) | |
Replaced six.BytesIO with io.BytesIO
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/file_uploads/tests.py | 3 | ||||
| -rw-r--r-- | tests/servers/test_basehttp.py | 3 |
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): |
