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
1ae2998f
Kaydet (Commit)
1ae2998f
authored
May 30, 2011
tarafından
Brian Quinlan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Increases some test timeouts to fix issue 11864.
üst
b9c09878
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test_concurrent_futures.py
Lib/test/test_concurrent_futures.py
+4
-4
No files found.
Lib/test/test_concurrent_futures.py
Dosyayı görüntüle @
1ae2998f
...
...
@@ -260,14 +260,14 @@ class WaitTests(unittest.TestCase):
def
test_timeout
(
self
):
future1
=
self
.
executor
.
submit
(
mul
,
6
,
7
)
future2
=
self
.
executor
.
submit
(
time
.
sleep
,
3
)
future2
=
self
.
executor
.
submit
(
time
.
sleep
,
6
)
finished
,
pending
=
futures
.
wait
(
[
CANCELLED_AND_NOTIFIED_FUTURE
,
EXCEPTION_FUTURE
,
SUCCESSFUL_FUTURE
,
future1
,
future2
],
timeout
=
1.
5
,
timeout
=
5
,
return_when
=
futures
.
ALL_COMPLETED
)
self
.
assertEqual
(
set
([
CANCELLED_AND_NOTIFIED_FUTURE
,
...
...
@@ -357,8 +357,8 @@ class ExecutorTest(unittest.TestCase):
results
=
[]
try
:
for
i
in
self
.
executor
.
map
(
time
.
sleep
,
[
0
,
0
,
3
],
timeout
=
1.
5
):
[
0
,
0
,
6
],
timeout
=
5
):
results
.
append
(
i
)
except
futures
.
TimeoutError
:
pass
...
...
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