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
72502c12
Kaydet (Commit)
72502c12
authored
Haz 25, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #21163: Fix one more "Task was destroyed but it is pending!" log in tests
üst
7ba40610
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
test_tasks.py
Lib/test/test_asyncio/test_tasks.py
+6
-2
No files found.
Lib/test/test_asyncio/test_tasks.py
Dosyayı görüntüle @
72502c12
...
@@ -411,8 +411,10 @@ class TaskTests(test_utils.TestCase):
...
@@ -411,8 +411,10 @@ class TaskTests(test_utils.TestCase):
loop
.
stop
()
loop
.
stop
()
t
=
asyncio
.
Task
(
task
(),
loop
=
loop
)
t
=
asyncio
.
Task
(
task
(),
loop
=
loop
)
self
.
assertRaises
(
with
self
.
assertRaises
(
RuntimeError
)
as
cm
:
RuntimeError
,
loop
.
run_until_complete
,
t
)
loop
.
run_until_complete
(
t
)
self
.
assertEqual
(
str
(
cm
.
exception
),
'Event loop stopped before Future completed.'
)
self
.
assertFalse
(
t
.
done
())
self
.
assertFalse
(
t
.
done
())
self
.
assertEqual
(
x
,
2
)
self
.
assertEqual
(
x
,
2
)
self
.
assertAlmostEqual
(
0.3
,
loop
.
time
())
self
.
assertAlmostEqual
(
0.3
,
loop
.
time
())
...
@@ -420,6 +422,8 @@ class TaskTests(test_utils.TestCase):
...
@@ -420,6 +422,8 @@ class TaskTests(test_utils.TestCase):
# close generators
# close generators
for
w
in
waiters
:
for
w
in
waiters
:
w
.
close
()
w
.
close
()
t
.
cancel
()
self
.
assertRaises
(
asyncio
.
CancelledError
,
loop
.
run_until_complete
,
t
)
def
test_wait_for
(
self
):
def
test_wait_for
(
self
):
...
...
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