Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Used a Python 3 compatible StringIO in test_utils

  • Loading branch information...
commit f56b703b2748c958468344d894902ac18ec36d78 1 parent 844fbc8
@claudep claudep authored
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, [])
Please sign in to comment.
Something went wrong with that request. Please try again.