mirror of
https://github.com/Hopiu/django.git
synced 2026-04-01 13:50:42 +00:00
Merge pull request #1135 from ambv/model_validation_fix
Fixes a Python 3.x regression introduced in a19e9d80
This commit is contained in:
commit
2335fdd077
1 changed files with 2 additions and 3 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue