Browse files

Used a Python 3 compatible StringIO in test_utils

  • Loading branch information...
1 parent 844fbc8 commit f56b703b2748c958468344d894902ac18ec36d78 @claudep claudep committed Apr 13, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 tests/test_utils/tests.py
View
3 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
@@ -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.