summaryrefslogtreecommitdiff
path: root/django/test
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-07-20 16:16:57 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-07-22 09:29:56 +0200
commitca07fda2efea24cb43423b884fa4648d44e52963 (patch)
tree5c172bf2155b58e380363d3e82ca2ef14afd163f /django/test
parent0d914d08a0d7b5a1521f498a8047971fe6cd61e7 (diff)
[py3] Switched to Python 3-compatible imports.
xrange/range will be dealt with in a separate commit due to the huge number of changes.
Diffstat (limited to 'django/test')
-rw-r--r--django/test/_doctest.py2
-rw-r--r--django/test/html.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/django/test/_doctest.py b/django/test/_doctest.py
index 75f16e202a..316c785f33 100644
--- a/django/test/_doctest.py
+++ b/django/test/_doctest.py
@@ -103,9 +103,9 @@ import __future__
import sys, traceback, inspect, linecache, os, re
import unittest, difflib, pdb, tempfile
import warnings
-from StringIO import StringIO
from django.utils import six
+from django.utils.six import StringIO
if sys.platform.startswith('java'):
# On Jython, isclass() reports some modules as classes. Patch it.
diff --git a/django/test/html.py b/django/test/html.py
index 8d577d91fd..2a1421bf17 100644
--- a/django/test/html.py
+++ b/django/test/html.py
@@ -5,9 +5,8 @@ Comparing two html documents.
from __future__ import unicode_literals
import re
-from HTMLParser import HTMLParseError
from django.utils.encoding import force_unicode
-from django.utils.html_parser import HTMLParser
+from django.utils.html_parser import HTMLParser, HTMLParseError
from django.utils import six