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
7aaa8a77
Kaydet (Commit)
7aaa8a77
authored
Şub 27, 2013
tarafından
Aymeric Augustin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed a test that relied on database exceptions not being wrapped.
üst
b2c697b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests.py
tests/backends/tests.py
+2
-2
No files found.
tests/backends/tests.py
Dosyayı görüntüle @
7aaa8a77
...
...
@@ -8,7 +8,7 @@ import threading
from
django.conf
import
settings
from
django.core.management.color
import
no_style
from
django.db
import
(
backend
,
connection
,
connections
,
DEFAULT_DB_ALIAS
,
IntegrityError
,
transaction
)
DatabaseError
,
IntegrityError
,
transaction
)
from
django.db.backends.signals
import
connection_created
from
django.db.backends.postgresql_psycopg2
import
version
as
pg_version
from
django.db.models
import
Sum
,
Avg
,
Variance
,
StdDev
...
...
@@ -444,7 +444,7 @@ class BackendTestCase(TestCase):
connection
.
settings_dict
[
'PASSWORD'
]
=
"françois"
try
:
cursor
=
connection
.
cursor
()
except
backend
.
Database
.
DatabaseError
:
except
DatabaseError
:
# As password is probably wrong, a database exception is expected
pass
except
Exception
as
e
:
...
...
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