Browse files

Merge pull request #1135 from ambv/model_validation_fix

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

Please sign in to comment.