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
1c143b19
Kaydet (Commit)
1c143b19
authored
Şub 10, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #20505: Add debug info to analyze sporaric failures of
test_timeout_rounding() on Windows XP buildbots.
üst
69a2547c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
base_events.py
Lib/asyncio/base_events.py
+6
-0
test_events.py
Lib/test/test_asyncio/test_events.py
+4
-1
No files found.
Lib/asyncio/base_events.py
Dosyayı görüntüle @
1c143b19
...
@@ -633,7 +633,13 @@ class BaseEventLoop(events.AbstractEventLoop):
...
@@ -633,7 +633,13 @@ class BaseEventLoop(events.AbstractEventLoop):
else
:
else
:
logger
.
log
(
level
,
'poll took
%.3
f seconds'
,
t1
-
t0
)
logger
.
log
(
level
,
'poll took
%.3
f seconds'
,
t1
-
t0
)
else
:
else
:
t0
=
self
.
time
()
event_list
=
self
.
_selector
.
select
(
timeout
)
event_list
=
self
.
_selector
.
select
(
timeout
)
dt
=
self
.
time
()
-
t0
if
not
event_list
and
timeout
and
dt
<
timeout
:
print
(
"asyncio: selector.select(
%.3
f ms) took
%.3
f ms"
%
(
timeout
*
1e3
,
dt
*
1e3
),
file
=
sys
.
__stderr__
,
flush
=
True
)
self
.
_process_events
(
event_list
)
self
.
_process_events
(
event_list
)
# Handle 'later' callbacks that are ready.
# Handle 'later' callbacks that are ready.
...
...
Lib/test/test_asyncio/test_events.py
Dosyayı görüntüle @
1c143b19
...
@@ -1182,7 +1182,10 @@ class EventLoopTestsMixin:
...
@@ -1182,7 +1182,10 @@ class EventLoopTestsMixin:
# may sleep at little bit less than timeout depending on the resolution
# may sleep at little bit less than timeout depending on the resolution
# of the clock used by the kernel. Tolerate 2 useless calls on these
# of the clock used by the kernel. Tolerate 2 useless calls on these
# platforms.
# platforms.
self
.
assertLessEqual
(
self
.
loop
.
_run_once_counter
,
8
)
self
.
assertLessEqual
(
self
.
loop
.
_run_once_counter
,
8
,
{
'time_info'
:
time
.
get_clock_info
(
'time'
),
'monotonic_info'
:
time
.
get_clock_info
(
'monotonic'
),
'selector'
:
self
.
loop
.
_selector
.
__class__
.
__name__
})
class
SubprocessTestsMixin
:
class
SubprocessTestsMixin
:
...
...
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