Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes a Python 3.x regression introduced in a19e9d8

  • Loading branch information...
commit f763227c7d2d91de6086e587aa3b52473001b2af 1 parent 5915800
@ambv ambv authored
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())
Please sign in to comment.
Something went wrong with that request. Please try again.