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
6934831e
Kaydet (Commit)
6934831e
authored
Ock 23, 2018
tarafından
Nathaniel J. Smith
Kaydeden (comit)
Andrew Svetlov
Ock 23, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-32633: Fix some warnings in test_asyncio.test_tasks (#5280)
üst
83c8675e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
test_tasks.py
Lib/test/test_asyncio/test_tasks.py
+8
-2
No files found.
Lib/test/test_asyncio/test_tasks.py
Dosyayı görüntüle @
6934831e
...
...
@@ -2342,7 +2342,8 @@ class SetMethodsTest:
await
asyncio
.
sleep
(
0.1
,
loop
=
self
.
loop
)
return
10
task
=
self
.
new_task
(
self
.
loop
,
foo
())
coro
=
foo
()
task
=
self
.
new_task
(
self
.
loop
,
coro
)
Future
.
set_result
(
task
,
'spam'
)
self
.
assertEqual
(
...
...
@@ -2355,6 +2356,8 @@ class SetMethodsTest:
r'step\(\): already done'
):
raise
exc
coro
.
close
()
def
test_set_exception_causes_invalid_state
(
self
):
class
MyExc
(
Exception
):
pass
...
...
@@ -2366,7 +2369,8 @@ class SetMethodsTest:
await
asyncio
.
sleep
(
0.1
,
loop
=
self
.
loop
)
return
10
task
=
self
.
new_task
(
self
.
loop
,
foo
())
coro
=
foo
()
task
=
self
.
new_task
(
self
.
loop
,
coro
)
Future
.
set_exception
(
task
,
MyExc
())
with
self
.
assertRaises
(
MyExc
):
...
...
@@ -2378,6 +2382,8 @@ class SetMethodsTest:
r'step\(\): already done'
):
raise
exc
coro
.
close
()
@unittest.skipUnless
(
hasattr
(
futures
,
'_CFuture'
)
and
hasattr
(
tasks
,
'_CTask'
),
...
...
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