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
0882e27e
Kaydet (Commit)
0882e27e
authored
Haz 27, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
(Merge 3.4) asyncio: Fix two "Coroutine xxx was never yielded from" messages in
tests
üst
875dbedd
09e75908
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 @
0882e27e
...
...
@@ -1423,8 +1423,10 @@ class TaskTests(test_utils.TestCase):
# as_completed() expects a list of futures, not a future instance
self
.
assertRaises
(
TypeError
,
self
.
loop
.
run_until_complete
,
asyncio
.
as_completed
(
fut
,
loop
=
self
.
loop
))
coro
=
coroutine_function
()
self
.
assertRaises
(
TypeError
,
self
.
loop
.
run_until_complete
,
asyncio
.
as_completed
(
coroutine_function
(),
loop
=
self
.
loop
))
asyncio
.
as_completed
(
coro
,
loop
=
self
.
loop
))
coro
.
close
()
def
test_wait_invalid_args
(
self
):
fut
=
asyncio
.
Future
(
loop
=
self
.
loop
)
...
...
@@ -1432,8 +1434,10 @@ class TaskTests(test_utils.TestCase):
# wait() expects a list of futures, not a future instance
self
.
assertRaises
(
TypeError
,
self
.
loop
.
run_until_complete
,
asyncio
.
wait
(
fut
,
loop
=
self
.
loop
))
coro
=
coroutine_function
()
self
.
assertRaises
(
TypeError
,
self
.
loop
.
run_until_complete
,
asyncio
.
wait
(
coroutine_function
(),
loop
=
self
.
loop
))
asyncio
.
wait
(
coro
,
loop
=
self
.
loop
))
coro
.
close
()
# wait() expects at least a future
self
.
assertRaises
(
ValueError
,
self
.
loop
.
run_until_complete
,
...
...
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