0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

Used a Python 3 compatible StringIO in test_utils

This commit is contained in:
Claude Paroz 2013-04-13 11:38:13 +02:00
parent 844fbc85c1
commit f56b703b27

View File

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from StringIO import StringIO
import warnings
from django.db import connection
@ -629,5 +628,5 @@ class DoctestNormalizerTest(SimpleTestCase):
def test_normalizer(self):
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, [])