Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixes a Python 3.x regression introduced in a19e9d8

  • Loading branch information...
commit f763227c7d2d91de6086e587aa3b52473001b2af 1 parent 5915800
Łukasz Langa authored May 18, 2013

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

  1. 5  tests/model_validation/tests.py
5  tests/model_validation/tests.py
... ...
@@ -1,7 +1,6 @@
1  
-import io
2  
-
3 1
 from django.core import management
4 2
 from django.test import TestCase
  3
+from django.utils import six
5 4
 
6 5
 
7 6
 class ModelValidationTest(TestCase):
@@ -11,4 +10,4 @@ def test_models_validate(self):
11 10
         # Validation Tests:
12 11
         #   * choices= Iterable of Iterables
13 12
         #       See: https://code.djangoproject.com/ticket/20430
14  
-        management.call_command("validate", stdout=io.BytesIO())
  13
+        management.call_command("validate", stdout=six.StringIO())

0 notes on commit f763227

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