Used a Python 3 compatible StringIO in test_utils
This commit is contained in:
parent
844fbc85c1
commit
f56b703b27
|
@ -1,6 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import absolute_import, unicode_literals
|
from __future__ import absolute_import, unicode_literals
|
||||||
from StringIO import StringIO
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from django.db import connection
|
from django.db import connection
|
||||||
|
@ -629,5 +628,5 @@ class DoctestNormalizerTest(SimpleTestCase):
|
||||||
|
|
||||||
def test_normalizer(self):
|
def test_normalizer(self):
|
||||||
suite = make_doctest("test_utils.doctest_output")
|
suite = make_doctest("test_utils.doctest_output")
|
||||||
failures = unittest.TextTestRunner(stream=StringIO()).run(suite)
|
failures = unittest.TextTestRunner(stream=six.StringIO()).run(suite)
|
||||||
self.assertEqual(failures.failures, [])
|
self.assertEqual(failures.failures, [])
|
||||||
|
|
Loading…
Reference in New Issue