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
c687bf06
Kaydet (Commit)
c687bf06
authored
Eyl 08, 2013
tarafından
Aymeric Augustin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Further hardening. Refs #18766.
üst
1a1e1478
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_timezone.py
tests/utils_tests/test_timezone.py
+2
-2
No files found.
tests/utils_tests/test_timezone.py
Dosyayı görüntüle @
c687bf06
...
@@ -26,10 +26,10 @@ class TimezoneTests(unittest.TestCase):
...
@@ -26,10 +26,10 @@ class TimezoneTests(unittest.TestCase):
long_ago
=
datetime
.
datetime
(
1900
,
1
,
1
,
tzinfo
=
timezone
.
utc
)
long_ago
=
datetime
.
datetime
(
1900
,
1
,
1
,
tzinfo
=
timezone
.
utc
)
try
:
try
:
timezone
.
localtime
(
long_ago
,
local_tz
)
timezone
.
localtime
(
long_ago
,
local_tz
)
except
OverflowError
as
exc
:
except
(
OverflowError
,
ValueError
)
as
exc
:
self
.
assertIn
(
"install pytz"
,
exc
.
args
[
0
])
self
.
assertIn
(
"install pytz"
,
exc
.
args
[
0
])
else
:
else
:
raise
unittest
.
SkipTest
(
"Failed to trigger an OverflowError"
)
raise
unittest
.
SkipTest
(
"Failed to trigger an OverflowError
or ValueError
"
)
def
test_now
(
self
):
def
test_now
(
self
):
with
override_settings
(
USE_TZ
=
True
):
with
override_settings
(
USE_TZ
=
True
):
...
...
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