mirror of
https://github.com/django/django.git
synced 2025-01-03 06:55:47 +00:00
Fixes a Python 3.x regression introduced in a19e9d80
This commit is contained in:
parent
5915800deb
commit
f763227c7d
@ -1,7 +1,6 @@
|
|||||||
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):
|
|||||||
# 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())
|
||||||
|
Loading…
Reference in New Issue
Block a user