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
49a63d08
Kaydet (Commit)
49a63d08
authored
Mar 01, 2017
tarafından
Tim Graham
Kaydeden (comit)
GitHub
Mar 01, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed a backends test with psycopg2 2.7.
üst
9cbf4869
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests.py
tests/backends/tests.py
+3
-1
No files found.
tests/backends/tests.py
Dosyayı görüntüle @
49a63d08
...
...
@@ -314,6 +314,7 @@ class PostgreSQLTests(TestCase):
"""
Regression test for #18130 and #24318.
"""
import
psycopg2
from
psycopg2.extensions
import
(
ISOLATION_LEVEL_READ_COMMITTED
as
read_committed
,
ISOLATION_LEVEL_SERIALIZABLE
as
serializable
,
...
...
@@ -324,7 +325,8 @@ class PostgreSQLTests(TestCase):
# PostgreSQL is configured with the default isolation level.
# Check the level on the psycopg2 connection, not the Django wrapper.
self
.
assertEqual
(
connection
.
connection
.
isolation_level
,
read_committed
)
default_level
=
read_committed
if
psycopg2
.
__version__
<
'2.7'
else
None
self
.
assertEqual
(
connection
.
connection
.
isolation_level
,
default_level
)
new_connection
=
connection
.
copy
()
new_connection
.
settings_dict
[
'OPTIONS'
][
'isolation_level'
]
=
serializable
...
...
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