Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1135 from ambv/model_validation_fix

Fixes a Python 3.x regression introduced in a19e9d8
  • Loading branch information...
commit 2335fdd0773d61b9c02e5d4e3cd17bfe230552d5 2 parents 5915800 + f763227
@dstufft dstufft 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.