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
ec5a2d5e
Kaydet (Commit)
ec5a2d5e
authored
Şub 26, 2011
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
test_logging: Changed TimedRotatingFileHandler tests to use UTC time rather than local time.
üst
d032131d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_logging.py
Lib/test/test_logging.py
+3
-3
No files found.
Lib/test/test_logging.py
Dosyayı görüntüle @
ec5a2d5e
...
@@ -2044,13 +2044,13 @@ for when, exp in (('S', 1),
...
@@ -2044,13 +2044,13 @@ for when, exp in (('S', 1),
(
'M'
,
60
),
(
'M'
,
60
),
(
'H'
,
60
*
60
),
(
'H'
,
60
*
60
),
(
'D'
,
60
*
60
*
24
),
(
'D'
,
60
*
60
*
24
),
(
'MIDNIGHT'
,
60
*
60
*
2
3
),
(
'MIDNIGHT'
,
60
*
60
*
2
4
),
# current time (epoch start) is a Thursday, W0 means Monday
# current time (epoch start) is a Thursday, W0 means Monday
(
'W0'
,
secs
(
days
=
4
,
hours
=
2
3
)),
(
'W0'
,
secs
(
days
=
4
,
hours
=
2
4
)),
):
):
def
test_compute_rollover
(
self
,
when
=
when
,
exp
=
exp
):
def
test_compute_rollover
(
self
,
when
=
when
,
exp
=
exp
):
rh
=
logging
.
handlers
.
TimedRotatingFileHandler
(
rh
=
logging
.
handlers
.
TimedRotatingFileHandler
(
self
.
fn
,
when
=
when
,
interval
=
1
,
backupCount
=
0
)
self
.
fn
,
when
=
when
,
interval
=
1
,
backupCount
=
0
,
utc
=
True
)
currentTime
=
0.0
currentTime
=
0.0
actual
=
rh
.
computeRollover
(
currentTime
)
actual
=
rh
.
computeRollover
(
currentTime
)
if
exp
!=
actual
:
if
exp
!=
actual
:
...
...
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