Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
2335fdd0
Kaydet (Commit)
2335fdd0
authored
May 18, 2013
tarafından
Donald Stufft
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #1135 from ambv/model_validation_fix
Fixes a Python 3.x regression introduced in
a19e9d80
üst
5915800d
f763227c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
tests.py
tests/model_validation/tests.py
+2
-3
No files found.
tests/model_validation/tests.py
Dosyayı görüntüle @
2335fdd0
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
.
Bytes
IO
())
management
.
call_command
(
"validate"
,
stdout
=
six
.
String
IO
())
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment