Victor Stinner
9dd39f524d
Issue #20472 : test_asyncio: skip PTY tests on Mac OS X older than 10.6
2014-02-03 00:32:13 +01:00
Victor Stinner
915bcb0111
Issue #20400 : Merge Tulip into Python: add the new asyncio.subprocess module
...
* Add a new asyncio.subprocess module
* Add new create_subprocess_exec() and create_subprocess_shell() functions
* The new asyncio.subprocess.SubprocessStreamProtocol creates stream readers
for stdout and stderr and a stream writer for stdin.
* The new asyncio.subprocess.Process class offers an API close to the
subprocess.Popen class:
- pid, returncode, stdin, stdout and stderr attributes
- communicate(), wait(), send_signal(), terminate() and kill() methods
* Remove STDIN (0), STDOUT (1) and STDERR (2) constants from base_subprocess
and unix_events, to not be confused with the symbols with the same name of
subprocess and asyncio.subprocess modules
* _ProactorBasePipeTransport.get_write_buffer_size() now counts also the size
of the pending write
* _ProactorBaseWritePipeTransport._loop_writing() may now pause the protocol if
the write buffer size is greater than the high water mark (64 KB by default)
2014-02-01 22:49:59 +01:00
Victor Stinner
1144214639
Issue #20452 : test_asyncio checks also the granularity
2014-02-01 02:17:54 +01:00
Victor Stinner
49d0f4e428
Issue #20452 : Remove debug code, no more needed
2014-01-31 12:59:43 +01:00
Victor Stinner
dcd9740ad2
Issue #20452 : select and selectors round (again) timeout away from zero for
...
poll and epoll
Improve also debug info to analyze the issue
2014-01-31 12:12:53 +01:00
Victor Stinner
31f65044a9
Issue #20452 : Oops, fix debug code :-/
...
Add also event more debug info
2014-01-31 10:55:55 +01:00
Victor Stinner
0278032110
Issue #20452 : add more info in case of test_asyncio failure to try to debug the
...
failure on buildbot "x86 Ubuntu Shared 3.x"
2014-01-31 09:29:35 +01:00
Victor Stinner
e623a12297
asyncio: subprocess_shell() and subprocess_exec() now raise ValueError instead of assert.
...
Moreover, bufsize different than 0 is now considered as an error.
2014-01-29 14:35:15 -08:00
Victor Stinner
669eeaf933
Merge latest Tulip into asyncio
...
- Make the new granularity attribute private
- Simplify BaseEventLoop._run_once(): avoid math.ceil(), use simple arithmetic
instead
2014-01-26 00:02:31 +01:00
Victor Stinner
128ee220e2
asyncio: Don't export BaseEventLoop, BaseSelectorEventLoop nor
...
BaseProactorEventLoop
Import them from submodules if you really need them.
2014-01-25 22:22:18 +01:00
Victor Stinner
8dffc456d7
Update asyncio from the Tulip project
...
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
2014-01-25 15:32:06 +01:00
Victor Stinner
f67255ab94
Issue #20311 : asyncio: Add a granularity attribute to BaseEventLoop: maximum
...
between the resolution of the BaseEventLoop.time() method and the resolution of
the selector. The granuarility is used in the scheduler to round time and
deadline.
2014-01-25 15:01:33 +01:00
Victor Stinner
8ce6e1100e
Close #20365 : Skip test_asyncio.test_events.test_read_pty_output() on Mac OS X
...
older than 10.9 (Maverick). kqueue doesn't support character devices (PTY) on
Mac OS X older than 10.9.
2014-01-23 17:26:06 +01:00
Guido van Rossum
02757ea7e9
asyncio: Minimal pty support in UNIX read pipe, by Jonathan Slenders.
2014-01-10 13:30:04 -08:00
Guido van Rossum
994bf4332f
Shorten lines.
2013-12-19 12:47:38 -08:00
Christian Heimes
a5f0eda91a
Skip some tests that require server name indication (SNI)
2013-12-15 17:02:36 +01:00
Zachary Ware
101d9e7250
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:44:27 -06:00
Christian Heimes
cd6f61137a
copy 'n paste typo (thx Antoine)
2013-12-07 00:14:55 +01:00
Christian Heimes
b82c915fa2
Skip new SSL tests with IocpEventLoop
2013-12-07 00:09:45 +01:00
Christian Heimes
6d8c1abb00
Issue #19509 : Finish implementation of check_hostname
...
The new asyncio package now supports the new feature and comes with additional tests for SSL.
2013-12-06 00:23:13 +01:00
Guido van Rossum
cced076218
asyncio: Fix get_event_loop() to call set_event_loop() when setting the loop. By Anthony Baire.
2013-11-27 10:37:13 -08:00
Guido van Rossum
27bfe468cc
asyncio: Hopeful fix for issue 19765.
2013-11-25 10:06:34 -08:00
Guido van Rossum
d41c343f28
asyncio: Use socketpair() from test_utils in tests (Saúl Ibarra Corretgé).
2013-11-23 11:51:53 -08:00
Guido van Rossum
2335de7a20
asyncio: Replace connection_refused() with error_received().
2013-11-15 16:51:48 -08:00
Serhiy Storchaka
e048addedc
Issue #19589 : Use specific asserts in asyncio tests.
2013-11-14 23:10:51 +02:00
Guido van Rossum
2bcae708d8
asyncio: Fix from Anthony Baire for CPython issue 19566 (replaces earlier fix).
2013-11-13 15:50:08 -08:00
Guido van Rossum
0eaa5ac9b5
asyncio: Refactor SIGCHLD handling. By Anthony Baire.
2013-11-04 15:50:46 -08:00
Richard Oudkerk
2902b6d17a
Relax test for process return code on Windows.
2013-11-02 16:38:58 +00:00
Guido van Rossum
a8d630a6e6
asyncio: Various style nits.
2013-11-01 14:20:55 -07:00
Guido van Rossum
e3f52ef067
asyncio: Document EventLoop.close().
2013-11-01 14:19:04 -07:00
Guido van Rossum
5969128a86
asyncio: Add support for running subprocesses on Windows with the IOCP event loop (Richard Oudkerk).
2013-10-30 14:52:03 -07:00
Guido van Rossum
b0fb94dda8
Fix asyncio issue #19293 (hangs on AIX).
2013-10-21 21:28:45 -07:00
Guido van Rossum
f75debda94
Unsilence several asyncio AIX tests that no longer hang, and silence a new hang.
2013-10-21 20:57:25 -07:00
Guido van Rossum
8a0fe85fbe
Avoid test_asyncio hang on AIX.
2013-10-21 20:26:12 -07:00
Charles-François Natali
bcd76827f4
Issue #19309 : asyncio: make waitpid() wait for all child processes, not only
...
those in the same process group.
2013-10-20 20:31:43 +02:00
Antoine Pitrou
92945c574b
Un-backout e3ec6b17260c - the test fix was actually also necessary
2013-10-20 02:16:40 +02:00
Antoine Pitrou
c1b78419e6
Backout e3ec6b17260c after Guido's fix
2013-10-20 02:09:08 +02:00
Antoine Pitrou
d20afad7d4
Issue #19305 : try to fix sporadic test_asyncio failure on FreeBSD 10.0
2013-10-20 01:51:25 +02:00
Antoine Pitrou
0d9eefda34
Try to fix test_asyncio dual stack test when creating an IPv6 socket fails
2013-10-20 01:10:52 +02:00
Guido van Rossum
3743711a96
Disable some subprocess tests that hang on AIX.
...
See http://bugs.python.org/issue19293
2013-10-19 09:10:13 -07:00
Guido van Rossum
051a331488
Relax some asyncio test timeouts ( http://bugs.python.org/issue19285 ).
2013-10-18 15:15:56 -07:00
Guido van Rossum
57497ad181
Rename Transport.pause/resume to pause_reading/pause_writing. Also relax timeout in test_call_later().
2013-10-18 07:58:20 -07:00
Guido van Rossum
fc29e0f37e
Rename the logger to plain "logger".
2013-10-17 15:39:45 -07:00
Guido van Rossum
27b7c7ebf1
Initial checkin of asyncio package (== Tulip, == PEP 3156).
2013-10-17 13:40:50 -07:00