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
051a3314
Kaydet (Commit)
051a3314
authored
Eki 18, 2013
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Relax some asyncio test timeouts (
http://bugs.python.org/issue19285
).
üst
ee1be99e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
test_base_events.py
Lib/test/test_asyncio/test_base_events.py
+1
-1
test_events.py
Lib/test/test_asyncio/test_events.py
+4
-4
No files found.
Lib/test/test_asyncio/test_base_events.py
Dosyayı görüntüle @
051a3314
...
@@ -121,7 +121,7 @@ class BaseEventLoopTests(unittest.TestCase):
...
@@ -121,7 +121,7 @@ class BaseEventLoopTests(unittest.TestCase):
t0
=
self
.
loop
.
time
()
t0
=
self
.
loop
.
time
()
self
.
loop
.
run_forever
()
self
.
loop
.
run_forever
()
t1
=
self
.
loop
.
time
()
t1
=
self
.
loop
.
time
()
self
.
assertTrue
(
0.09
<=
t1
-
t0
<=
0.
12
,
t1
-
t0
)
self
.
assertTrue
(
0.09
<=
t1
-
t0
<=
0.
9
,
t1
-
t0
)
def
test_run_once_in_executor_handle
(
self
):
def
test_run_once_in_executor_handle
(
self
):
def
cb
():
def
cb
():
...
...
Lib/test/test_asyncio/test_events.py
Dosyayı görüntüle @
051a3314
...
@@ -215,7 +215,7 @@ class EventLoopTestsMixin:
...
@@ -215,7 +215,7 @@ class EventLoopTestsMixin:
t0
=
self
.
loop
.
time
()
t0
=
self
.
loop
.
time
()
self
.
loop
.
run_until_complete
(
tasks
.
sleep
(
0.1
,
loop
=
self
.
loop
))
self
.
loop
.
run_until_complete
(
tasks
.
sleep
(
0.1
,
loop
=
self
.
loop
))
t1
=
self
.
loop
.
time
()
t1
=
self
.
loop
.
time
()
self
.
assertTrue
(
0.08
<=
t1
-
t0
<=
0.
12
,
t1
-
t0
)
self
.
assertTrue
(
0.08
<=
t1
-
t0
<=
0.
8
,
t1
-
t0
)
def
test_run_until_complete_stopped
(
self
):
def
test_run_until_complete_stopped
(
self
):
@tasks.coroutine
@tasks.coroutine
...
@@ -238,7 +238,7 @@ class EventLoopTestsMixin:
...
@@ -238,7 +238,7 @@ class EventLoopTestsMixin:
self
.
loop
.
run_forever
()
self
.
loop
.
run_forever
()
t1
=
time
.
monotonic
()
t1
=
time
.
monotonic
()
self
.
assertEqual
(
results
,
[
'hello world'
])
self
.
assertEqual
(
results
,
[
'hello world'
])
self
.
assertTrue
(
0.08
<=
t1
-
t0
<=
0.
2
,
t1
-
t0
)
self
.
assertTrue
(
0.08
<=
t1
-
t0
<=
0.
8
,
t1
-
t0
)
def
test_call_soon
(
self
):
def
test_call_soon
(
self
):
results
=
[]
results
=
[]
...
@@ -462,8 +462,8 @@ class EventLoopTestsMixin:
...
@@ -462,8 +462,8 @@ class EventLoopTestsMixin:
self
.
loop
.
add_signal_handler
(
signal
.
SIGALRM
,
my_handler
,
*
some_args
)
self
.
loop
.
add_signal_handler
(
signal
.
SIGALRM
,
my_handler
,
*
some_args
)
signal
.
setitimer
(
signal
.
ITIMER_REAL
,
0.
0
1
,
0
)
# Send SIGALRM once.
signal
.
setitimer
(
signal
.
ITIMER_REAL
,
0.1
,
0
)
# Send SIGALRM once.
self
.
loop
.
call_later
(
0.
01
5
,
self
.
loop
.
stop
)
self
.
loop
.
call_later
(
0.5
,
self
.
loop
.
stop
)
self
.
loop
.
run_forever
()
self
.
loop
.
run_forever
()
self
.
assertEqual
(
caught
,
1
)
self
.
assertEqual
(
caught
,
1
)
...
...
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