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
fb578f0a
Kaydet (Commit)
fb578f0a
authored
Tem 09, 2015
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.4 (asyncio)
üst
c5ea754e
e6ecea53
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
8 deletions
+10
-8
queues.py
Lib/asyncio/queues.py
+1
-1
test_selector_events.py
Lib/test/test_asyncio/test_selector_events.py
+1
-1
test_streams.py
Lib/test/test_asyncio/test_streams.py
+3
-3
test_subprocess.py
Lib/test/test_asyncio/test_subprocess.py
+1
-1
test_windows_events.py
Lib/test/test_asyncio/test_windows_events.py
+4
-2
No files found.
Lib/asyncio/queues.py
Dosyayı görüntüle @
fb578f0a
...
...
@@ -8,7 +8,7 @@ import heapq
from
.
import
events
from
.
import
futures
from
.
import
locks
from
.
task
s
import
coroutine
from
.
coroutine
s
import
coroutine
class
QueueEmpty
(
Exception
):
...
...
Lib/test/test_asyncio/test_selector_events.py
Dosyayı görüntüle @
fb578f0a
...
...
@@ -348,7 +348,7 @@ class BaseSelectorEventLoopTests(test_utils.TestCase):
self
.
loop
.
_sock_connect
.
call_args
[
0
])
def
test_sock_connect_timeout
(
self
):
#
Tulip
issue #205: sock_connect() must unregister the socket on
#
asyncio
issue #205: sock_connect() must unregister the socket on
# timeout error
# prepare mocks
...
...
Lib/test/test_asyncio/test_streams.py
Dosyayı görüntüle @
fb578f0a
...
...
@@ -580,7 +580,7 @@ class StreamReaderTests(test_utils.TestCase):
@unittest.skipIf
(
sys
.
platform
==
'win32'
,
"Don't have pipes"
)
def
test_read_all_from_pipe_reader
(
self
):
# See
Tulip
issue 168. This test is derived from the example
# See
asyncio
issue 168. This test is derived from the example
# subprocess_attach_read_pipe.py, but we configure the
# StreamReader's limit so that twice it is less than the size
# of the data writter. Also we must explicitly attach a child
...
...
@@ -621,7 +621,7 @@ os.close(fd)
self
.
addCleanup
(
asyncio
.
set_event_loop
,
None
)
asyncio
.
set_event_loop
(
self
.
loop
)
#
Tulip
issue #184: Ensure that StreamReaderProtocol constructor
#
asyncio
issue #184: Ensure that StreamReaderProtocol constructor
# retrieves the current loop if the loop parameter is not set
reader
=
asyncio
.
StreamReader
()
self
.
assertIs
(
reader
.
_loop
,
self
.
loop
)
...
...
@@ -630,7 +630,7 @@ os.close(fd)
self
.
addCleanup
(
asyncio
.
set_event_loop
,
None
)
asyncio
.
set_event_loop
(
self
.
loop
)
#
Tulip
issue #184: Ensure that StreamReaderProtocol constructor
#
asyncio
issue #184: Ensure that StreamReaderProtocol constructor
# retrieves the current loop if the loop parameter is not set
reader
=
mock
.
Mock
()
protocol
=
asyncio
.
StreamReaderProtocol
(
reader
)
...
...
Lib/test/test_asyncio/test_subprocess.py
Dosyayı görüntüle @
fb578f0a
...
...
@@ -266,7 +266,7 @@ class SubprocessMixin:
self
.
assertTrue
(
transport
.
resume_reading
.
called
)
def
test_stdin_not_inheritable
(
self
):
#
Tulip
issue #209: stdin must not be inheritable, otherwise
#
asyncio
issue #209: stdin must not be inheritable, otherwise
# the Process.communicate() hangs
@asyncio.coroutine
def
len_message
(
message
):
...
...
Lib/test/test_asyncio/test_windows_events.py
Dosyayı görüntüle @
fb578f0a
...
...
@@ -132,7 +132,8 @@ class ProactorTests(test_utils.TestCase):
self
.
assertTrue
(
fut
.
result
())
self
.
assertTrue
(
0
<=
elapsed
<
0.3
,
elapsed
)
# Tulip issue #195: cancelling a done _WaitHandleFuture must not crash
# asyncio issue #195: cancelling a done _WaitHandleFuture
# must not crash
fut
.
cancel
()
def
test_wait_for_handle_cancel
(
self
):
...
...
@@ -149,7 +150,8 @@ class ProactorTests(test_utils.TestCase):
elapsed
=
self
.
loop
.
time
()
-
start
self
.
assertTrue
(
0
<=
elapsed
<
0.1
,
elapsed
)
# Tulip issue #195: cancelling a _WaitHandleFuture twice must not crash
# asyncio issue #195: cancelling a _WaitHandleFuture twice
# must not crash
fut
=
self
.
loop
.
_proactor
.
wait_for_handle
(
event
)
fut
.
cancel
()
fut
.
cancel
()
...
...
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