summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_windows_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-44287: asyncio test_popen() uses longer timeout (GH-26832)Victor Stinner2021-06-211-1/+2
| | | | | | | | Fix asyncio test_popen() of test_windows_utils by using a longer timeout. Use military grade battle-tested test.support.SHORT_TIMEOUT timeout rather than a hardcoded timeout of 10 seconds: it's 30 seconds by default, but it is made longer on slow buildbots. WaitForMultipleObjects() timeout argument is in milliseconds.
* bpo-33562: Check the global asyncio event loop policy isn't set after any ↵Brett Cannon2018-06-021-0/+5
| | | | tests (GH-7328)
* bpo-32273: Move asyncio.test_utils to test.test_asyncio (#4785)Yury Selivanov2017-12-111-6/+1
|
* bpo-32154: Remove asyncio.windows_utils.socketpair (#4609)Victor Stinner2017-11-281-50/+0
|
* bpo-32154: Remove asyncio.selectors (#4605)Victor Stinner2017-11-281-1/+1
| | | | | | | | | | | | * Remove asyncio.selectors and asyncio._overlapped symbols from the namespace of the asyncio module * Replace "from asyncio import selectors" with "import selectors" * Replace "from asyncio import _overlapped" with "import _overlapped" asyncio.selectors was added to support Python 3.3, which doesn't have selectors in its standard library, and Python 3.4 in the same code base. Same rationale for asyncio._overlapped. Python 3.3 reached its end of life, and asyncio is no more maintained as a third party module on PyPI.
* asyncio: Close transports in testsVictor Stinner2015-01-151-3/+8
| | | | | | | | | * Use test_utils.run_briefly() to execute pending calls to really close transports * sslproto: mock also _SSLPipe.shutdown(), it's need to close the transport * pipe test: the test doesn't close explicitly the PipeHandle, so ignore the warning instead * test_popen: use the context manager ("with p:") to explicitly close pipes
* asyncio: sync with TulipVictor Stinner2014-12-261-6/+5
| | | | | * Fix pyflakes warnings: remove unused imports and variables * asyncio.test_support now uses test.support and test.script_helper if available
* asyncio: sync with TulipVictor Stinner2014-12-181-4/+7
|
* Issue #18643: asyncio.windows_utils now reuse socket.socketpair() on Windows ifVictor Stinner2014-10-141-0/+4
| | | | | | | | | available Since Python 3.5, socket.socketpair() is now also available on Windows. Make csock blocking before calling the accept() method, and fix also a typo in an error message.
* Fix asyncio tests on Windows: wait for the subprocess exitVictor Stinner2014-06-031-0/+2
| | | | | Before, regrtest failed to remove the temporary test directory because the process was still running in this directory.
* Issue #21119: asyncio: Make sure that socketpair() close sockets on errorVictor Stinner2014-06-031-0/+9
| | | | Close the listening socket if sock.bind() raises an exception.
* asyncio: Synchronize with TulipVictor Stinner2014-03-051-4/+23
| | | | | | | | | | | | * Issue #159: Fix windows_utils.socketpair() - Use "127.0.0.1" (IPv4) or "::1" (IPv6) host instead of "localhost", because "localhost" may be a different IP address - Reject also invalid arguments: only AF_INET/AF_INET6 with SOCK_STREAM (and proto=0) are supported * Reject add/remove reader/writer when event loop is closed. * Fix ResourceWarning warnings
* asyncio: Replace "unittest.mock" with "mock" in unit testsVictor Stinner2014-02-261-2/+2
| | | | | Use "from unittest import mock". It should simplify my work to merge new tests in Trollius, because Trollius uses "mock" backport for Python 2.
* asyncio: Longer timeout in Windows test_popen. Fixes issue 19598.Guido van Rossum2013-11-151-1/+2
|
* asyncio: Add support for running subprocesses on Windows with the IOCP event ↵Guido van Rossum2013-10-301-5/+1
| | | | loop (Richard Oudkerk).
* Make various asyncio test files individually runnableAntoine Pitrou2013-10-201-0/+4
|
* Make asyncio tests run on Windows.Guido van Rossum2013-10-171-1/+5
|
* Initial checkin of asyncio package (== Tulip, == PEP 3156).Guido van Rossum2013-10-171-0/+136