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
dc96ca25
Kaydet (Commit)
dc96ca25
authored
Ara 03, 2013
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added some diagnostics to help with #19690.
üst
ef2d8a59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
test_logging.py
Lib/test/test_logging.py
+12
-1
No files found.
Lib/test/test_logging.py
Dosyayı görüntüle @
dc96ca25
...
...
@@ -590,6 +590,7 @@ class HandlerTest(BaseTest):
for
_
in
range
(
tries
):
try
:
os
.
unlink
(
fname
)
self
.
deletion_time
=
time
.
time
()
except
OSError
:
pass
time
.
sleep
(
0.004
*
random
.
randint
(
0
,
4
))
...
...
@@ -597,6 +598,9 @@ class HandlerTest(BaseTest):
del_count
=
500
log_count
=
500
self
.
handle_time
=
None
self
.
deletion_time
=
None
for
delay
in
(
False
,
True
):
fd
,
fn
=
tempfile
.
mkstemp
(
'.log'
,
'test_logging-3-'
)
os
.
close
(
fd
)
...
...
@@ -610,7 +614,14 @@ class HandlerTest(BaseTest):
for
_
in
range
(
log_count
):
time
.
sleep
(
0.005
)
r
=
logging
.
makeLogRecord
({
'msg'
:
'testing'
})
h
.
handle
(
r
)
try
:
self
.
handle_time
=
time
.
time
()
h
.
handle
(
r
)
except
Exception
:
print
(
'Deleted at
%
s, '
'opened at
%
s'
%
(
self
.
deletion_time
,
self
.
handle_time
))
raise
finally
:
remover
.
join
()
h
.
close
()
...
...
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