Skip to content

Commit

Permalink
Used a Python 3 compatible StringIO in test_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep committed Apr 13, 2013
1 parent 844fbc8 commit f56b703
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_utils/tests.py
@@ -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
Expand Down Expand Up @@ -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, [])

0 comments on commit f56b703

Please sign in to comment.