Kaydet (Commit) 2335fdd0 authored tarafından Donald Stufft's avatar Donald Stufft

Merge pull request #1135 from ambv/model_validation_fix

Fixes a Python 3.x regression introduced in a19e9d80
import io
from django.core import management from django.core import management
from django.test import TestCase from django.test import TestCase
from django.utils import six
class ModelValidationTest(TestCase): class ModelValidationTest(TestCase):
...@@ -11,4 +10,4 @@ class ModelValidationTest(TestCase): ...@@ -11,4 +10,4 @@ class ModelValidationTest(TestCase):
# Validation Tests: # Validation Tests:
# * choices= Iterable of Iterables # * choices= Iterable of Iterables
# See: https://code.djangoproject.com/ticket/20430 # See: https://code.djangoproject.com/ticket/20430
management.call_command("validate", stdout=io.BytesIO()) management.call_command("validate", stdout=six.StringIO())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment