Permalink
Browse files

Fixes a Python 3.x regression introduced in a19e9d8

  • Loading branch information...
1 parent 5915800 commit f763227c7d2d91de6086e587aa3b52473001b2af @ambv ambv committed May 18, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/model_validation/tests.py
View
5 tests/model_validation/tests.py
@@ -1,7 +1,6 @@
-import io
-
from django.core import management
from django.test import TestCase
+from django.utils import six
class ModelValidationTest(TestCase):
@@ -11,4 +10,4 @@ def test_models_validate(self):
# Validation Tests:
# * choices= Iterable of Iterables
# See: https://code.djangoproject.com/ticket/20430
- management.call_command("validate", stdout=io.BytesIO())
+ management.call_command("validate", stdout=six.StringIO())

0 comments on commit f763227

Please sign in to comment.