diff options
| author | Donald Stufft <donald@stufft.io> | 2013-05-18 09:11:06 -0700 |
|---|---|---|
| committer | Donald Stufft <donald@stufft.io> | 2013-05-18 09:11:06 -0700 |
| commit | 2335fdd0773d61b9c02e5d4e3cd17bfe230552d5 (patch) | |
| tree | 048f06d72fd6941ed2ff680a75db4e5533ebea7a | |
| parent | 5915800debef7cec01672dc0b467b7c2bd3aba03 (diff) | |
| parent | f763227c7d2d91de6086e587aa3b52473001b2af (diff) | |
Merge pull request #1135 from ambv/model_validation_fix
Fixes a Python 3.x regression introduced in a19e9d80
| -rw-r--r-- | tests/model_validation/tests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/model_validation/tests.py b/tests/model_validation/tests.py index 96baf640eb..ffd0d89412 100644 --- a/tests/model_validation/tests.py +++ b/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 @@ class ModelValidationTest(TestCase): # 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()) |
