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
875e4fbc
Kaydet (Commit)
875e4fbc
authored
Kas 20, 2015
tarafından
Yury Selivanov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.4
üst
e342b8e8
0f3c9765
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
test_utils.py
Lib/asyncio/test_utils.py
+11
-0
test_base_events.py
Lib/test/test_asyncio/test_base_events.py
+4
-3
No files found.
Lib/asyncio/test_utils.py
Dosyayı görüntüle @
875e4fbc
...
@@ -24,6 +24,7 @@ except ImportError: # pragma: no cover
...
@@ -24,6 +24,7 @@ except ImportError: # pragma: no cover
ssl
=
None
ssl
=
None
from
.
import
base_events
from
.
import
base_events
from
.
import
compat
from
.
import
events
from
.
import
events
from
.
import
futures
from
.
import
futures
from
.
import
selectors
from
.
import
selectors
...
@@ -421,6 +422,16 @@ class TestCase(unittest.TestCase):
...
@@ -421,6 +422,16 @@ class TestCase(unittest.TestCase):
# in an except block of a generator
# in an except block of a generator
self
.
assertEqual
(
sys
.
exc_info
(),
(
None
,
None
,
None
))
self
.
assertEqual
(
sys
.
exc_info
(),
(
None
,
None
,
None
))
if
not
compat
.
PY34
:
# Python 3.3 compatibility
def
subTest
(
self
,
*
args
,
**
kwargs
):
class
EmptyCM
:
def
__enter__
(
self
):
pass
def
__exit__
(
self
,
*
exc
):
pass
return
EmptyCM
()
@contextlib.contextmanager
@contextlib.contextmanager
def
disable_logger
():
def
disable_logger
():
...
...
Lib/test/test_asyncio/test_base_events.py
Dosyayı görüntüle @
875e4fbc
...
@@ -782,9 +782,10 @@ class BaseEventLoopTests(test_utils.TestCase):
...
@@ -782,9 +782,10 @@ class BaseEventLoopTests(test_utils.TestCase):
self
.
loop
.
_selector
.
select
.
return_value
=
(
event_sentinel
,)
self
.
loop
.
_selector
.
select
.
return_value
=
(
event_sentinel
,)
for
i
in
range
(
1
,
3
):
for
i
in
range
(
1
,
3
):
self
.
loop
.
call_soon
(
self
.
loop
.
stop
)
with
self
.
subTest
(
'Loop
%
d/2'
%
i
):
self
.
loop
.
run_forever
()
self
.
loop
.
call_soon
(
self
.
loop
.
stop
)
self
.
assertEqual
(
callcount
,
1
)
self
.
loop
.
run_forever
()
self
.
assertEqual
(
callcount
,
1
)
def
test_run_once
(
self
):
def
test_run_once
(
self
):
# Simple test for test_utils.run_once(). It may seem strange
# Simple test for test_utils.run_once(). It may seem strange
...
...
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