Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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
cpython
Commits
95f7b9fc
Kaydet (Commit)
95f7b9fc
authored
Tem 25, 2016
tarafından
Alexander Belopolsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 24773: Make zoneinfo tests more robust. (reapply)
üst
c74fb9c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
datetimetester.py
Lib/test/datetimetester.py
+5
-2
No files found.
Lib/test/datetimetester.py
Dosyayı görüntüle @
95f7b9fc
...
@@ -4677,7 +4677,10 @@ class ZoneInfoTest(unittest.TestCase):
...
@@ -4677,7 +4677,10 @@ class ZoneInfoTest(unittest.TestCase):
def
setUp
(
self
):
def
setUp
(
self
):
if
sys
.
platform
==
"win32"
:
if
sys
.
platform
==
"win32"
:
self
.
skipTest
(
"Skipping zoneinfo tests on Windows"
)
self
.
skipTest
(
"Skipping zoneinfo tests on Windows"
)
self
.
tz
=
ZoneInfo
.
fromname
(
self
.
zonename
)
try
:
self
.
tz
=
ZoneInfo
.
fromname
(
self
.
zonename
)
except
FileNotFoundError
as
err
:
self
.
skipTest
(
"Skipping
%
s:
%
s"
%
(
self
.
zonename
,
err
))
def
assertEquivDatetimes
(
self
,
a
,
b
):
def
assertEquivDatetimes
(
self
,
a
,
b
):
self
.
assertEqual
((
a
.
replace
(
tzinfo
=
None
),
a
.
fold
,
id
(
a
.
tzinfo
)),
self
.
assertEqual
((
a
.
replace
(
tzinfo
=
None
),
a
.
fold
,
id
(
a
.
tzinfo
)),
...
@@ -4738,7 +4741,7 @@ class ZoneInfoTest(unittest.TestCase):
...
@@ -4738,7 +4741,7 @@ class ZoneInfoTest(unittest.TestCase):
# civil time was generally not solar time in those years.
# civil time was generally not solar time in those years.
self
.
zonename
.
startswith
(
'right/'
)):
self
.
zonename
.
startswith
(
'right/'
)):
self
.
skipTest
(
"Skipping
%
s"
%
self
.
zonename
)
self
.
skipTest
(
"Skipping
%
s"
%
self
.
zonename
)
tz
=
ZoneInfo
.
fromname
(
self
.
zonename
)
tz
=
self
.
tz
TZ
=
os
.
environ
.
get
(
'TZ'
)
TZ
=
os
.
environ
.
get
(
'TZ'
)
os
.
environ
[
'TZ'
]
=
self
.
zonename
os
.
environ
[
'TZ'
]
=
self
.
zonename
try
:
try
:
...
...
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