summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_streams.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33562: Check the global asyncio event loop policy isn't set after any ↵Brett Cannon2018-06-021-0/+4
| | | | tests (GH-7328)
* bpo-32391: Implement StreamWriter.wait_closed() (#5281)Andrew Svetlov2018-01-241-1/+30
|
* bpo-32273: Move asyncio.test_utils to test.test_asyncio (#4785)Yury Selivanov2017-12-111-1/+1
|
* bpo-32262: Fix codestyle; use f-strings formatting where necessary. (#4775)Yury Selivanov2017-12-101-4/+5
|
* bpo-32193: Convert asyncio to async/await usage (#4753)Andrew Svetlov2017-12-081-20/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Convert asyncio/tasks.py to async/await * Convert asyncio/queues.py to async/await * Convert asyncio/test_utils.py to async/await * Convert asyncio/base_subprocess.py to async/await * Convert asyncio/subprocess.py to async/await * Convert asyncio/streams.py to async/await * Fix comments * Convert asyncio/locks.py to async/await * Convert asyncio.sleep to async def * Add a comment * Add missing news * Convert stubs from AbstrctEventLoop to async functions * Convert subprocess_shell/subprocess_exec * Convert connect_read_pipe/connect_write_pip to async/await syntax * Convert create_datagram_endpoint * Convert create_unix_server/create_unix_connection * Get rid of old style coroutines in unix_events.py * Convert selector_events.py to async/await * Convert wait_closed and create_connection * Drop redundant line * Convert base_events.py * Code cleanup * Drop redundant comments * Fix indentation * Add explicit tests for compatibility between old and new coroutines * Convert windows event loop to use async/await * Fix double awaiting of async function * Convert asyncio/locks.py * Improve docstring * Convert tests to async/await * Convert more tests * Convert more tests * Convert more tests * Convert tests * Improve test
* bpo-28684: asyncio tests handle PermissionError raised on binding unix ↵xdegaye2017-11-241-4/+5
| | | | | | | | | sockets (GH-4503) The test.support.skip_unless_bind_unix_socket() decorator is used to skip asyncio tests that fail because the platform lacks a functional bind() function for unix domain sockets (as it is the case for non root users on the recent Android versions that run now SELinux in enforcing mode).
* bpo-32034: Make IncompleteReadError & LimitOverrunError pickleable #4409Yury Selivanov2017-11-151-0/+18
|
* Issue #28613: Fix get_event_loop() to return the current loopYury Selivanov2016-11-041-0/+1
| | | | when called from coroutines or callbacks.
* Use raw string for regexpGuido van Rossum2016-09-101-1/+1
|
* Issue #26050: Add asyncio.StreamReader.readuntil() method.Yury Selivanov2016-01-111-1/+127
| | | | Patch by Марк Коренберг.
* asyncio/tests: Fix some ResourceWarningsYury Selivanov2015-12-171-6/+7
|
* asyncio/tests: Fix deprecation warningYury Selivanov2015-12-171-1/+1
|
* asyncio: Sync with githubYury Selivanov2015-12-111-2/+2
|
* Fix whitespace.Guido van Rossum2015-10-191-1/+1
|
* Issue #25441: asyncio: Raise error from drain() when socket is closed.Guido van Rossum2015-10-191-0/+43
|
* Fix StreamReader.__repr__Andrew Svetlov2015-09-291-0/+42
|
* asyncio: sync with githubVictor Stinner2015-07-251-16/+12
| | | | | | | | | * Fix ResourceWarning warnings in test_streams * Return True from StreamReader.eof_received() to fix http://bugs.python.org/issue24539 (but still needs a unittest). Add StreamReader.__repr__() for easy debugging. * remove unused imports * Issue #234: Drop JoinableQueue on Python 3.5+
* asyncio: sync with github asyncioVictor Stinner2015-07-091-3/+3
| | | | | * queues: get coroutine from asyncio.coroutines, not from asyncio.tasks * tets: replace tulip with asyncio in comments
* asyncio: pyflakes, remove unused importVictor Stinner2015-01-211-9/+1
| | | | tests: Remove unused function; inline another function
* asyncio: sync with TulipVictor Stinner2015-01-091-0/+19
| | | | | | | * Tulip issue 184: FlowControlMixin constructor now get the event loop if the loop parameter is not set. Add unit tests to ensure that constructor of StreamReader and StreamReaderProtocol classes get the event loop. * Remove outdated TODO/XXX
* asyncio: Truncate to 80 columnsVictor Stinner2015-01-081-2/+4
|
* asyncio: Refactor tests: add a base TestCase classVictor Stinner2014-06-171-2/+3
|
* Fix test-order-dependend asyncio test failure caused by rev ↵Guido van Rossum2014-05-131-6/+9
| | | | 909ea8cc86bbab92dbb6231668f403b7360f30fa.
* asyncio: Fix upstream issue 168: StreamReader.read(-1) from pipe may hang if ↵Guido van Rossum2014-05-121-0/+36
| | | | data exceeds buffer limit.
* asyncio: Fix pyflakes warnings: remove unused variables and importsVictor Stinner2014-02-261-1/+0
|
* 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: Fix spelling and typos.Yury Selivanov2014-02-191-1/+1
| | | | Thanks to Vajrasky Kok for discovering some of them.
* asyncio: Add support for UNIX Domain Sockets.Yury Selivanov2014-02-181-39/+156
|
* asyncio.streams.StreamReader: Add 'at_eof()' methodYury Selivanov2014-02-061-0/+15
|
* asyncio.streams: Use bytebuffer in StreamReader; Add assertion in feed_dataYury Selivanov2014-02-051-27/+52
|
* asyncio: Fix misc whitespace issues.Guido van Rossum2014-01-311-2/+2
|
* Update asyncio from the Tulip projectVictor Stinner2014-01-251-58/+60
| | | | | | | | | | | | | | | | Major changes: - StreamReader.readexactly() now raises an IncompleteReadError if the end of stream is reached before we received enough bytes, instead of returning less bytes than requested. - Unit tests use the main asyncio module instead of submodules like events - _UnixWritePipeTransport now also supports character devices, as _UnixReadPipeTransport. Patch written by Jonathan Slenders. - Export more symbols: BaseEventLoop, BaseProactorEventLoop, BaseSelectorEventLoop, Queue and Queue sublasses, Empty, Full
* asyncio: Add streams.start_server(), by Gustavo Carneiro.Guido van Rossum2013-11-191-0/+66
|
* Write flow control for asyncio (includes asyncio.streams overhaul).Guido van Rossum2013-10-181-21/+21
|
* Make asyncio tests run on Windows.Guido van Rossum2013-10-171-1/+4
|
* Initial checkin of asyncio package (== Tulip, == PEP 3156).Guido van Rossum2013-10-171-0/+361