Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Used a Python 3 compatible StringIO in test_utils

  • Loading branch information...
commit f56b703b2748c958468344d894902ac18ec36d78 1 parent 844fbc8
Claude Paroz authored

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  tests/test_utils/tests.py
3  tests/test_utils/tests.py
... ...
@@ -1,6 +1,5 @@
1 1
 # -*- coding: utf-8 -*-
2 2
 from __future__ import absolute_import, unicode_literals
3  
-from StringIO import StringIO
4 3
 import warnings
5 4
 
6 5
 from django.db import connection
@@ -629,5 +628,5 @@ class DoctestNormalizerTest(SimpleTestCase):
629 628
 
630 629
     def test_normalizer(self):
631 630
         suite = make_doctest("test_utils.doctest_output")
632  
-        failures = unittest.TextTestRunner(stream=StringIO()).run(suite)
  631
+        failures = unittest.TextTestRunner(stream=six.StringIO()).run(suite)
633 632
         self.assertEqual(failures.failures, [])

0 notes on commit f56b703

Please sign in to comment.
Something went wrong with that request. Please try again.