Kyle Stanley
8ec7cb53f0
bpo-40115: Fix refleak in test_asyncio.test_run_in_executor_cancel() (GH-19282)
...
Call explicitly self.loop.shutdown_default_executor().
2020-04-02 04:46:44 +02:00
Stefan Krah
815280eb16
bpo-39794: Add --without-decimal-contextvar ( #18702 )
2020-02-29 19:43:42 +01:00
Andrew Svetlov
0c6e3aa67b
Suppress the hang ( #18457 )
2020-02-27 00:15:12 +02:00
Andrew Svetlov
90d9ba6ef1
bpo-34793: Drop old-style context managers in asyncio.locks (GH-17533)
2020-02-01 13:12:52 +02:00
Andrew Svetlov
10ac0cded2
bpo-39191: Fix RuntimeWarning in asyncio test (GH-17863)
...
https://bugs.python.org/issue39191
2020-01-07 05:23:01 -08:00
Kyle Stanley
89aa7f0ede
bpo-34790: Implement deprecation of passing coroutines to asyncio.wait() (GH-16977)
2019-12-30 13:50:19 +02:00
Kyle Stanley
1988344a6b
Fix warnings in test_asyncio.test_base_events ( #17577 )
...
Co-authored-by: tirkarthi
2019-12-12 14:48:20 +01:00
Victor Stinner
0d63bacefd
bpo-38614: Use test.support.SHORT_TIMEOUT constant (GH-17566)
...
Replace hardcoded timeout constants in tests with SHORT_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.
SHORT_TIMEOUT is 30 seconds by default, but it can be longer
depending on --timeout command line option.
The change makes almost all timeouts longer, except
test_reap_children() of test_support which is made 2x shorter:
SHORT_TIMEOUT should be enough. If this test starts to fail,
LONG_TIMEOUT should be used instead.
Uniformize also "from test import support" import in some test files.
2019-12-11 11:30:03 +01:00
Victor Stinner
c98b0199a9
bpo-38614: Use test.support.LONG_TIMEOUT constant (GH-17562)
...
Replace hardcoded timeout constants in tests with LONG_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.
LONG_TIMEOUT is 5 minutes by default, but it can be longer depending
on --timeout command line option.
2019-12-10 21:12:26 +01:00
Victor Stinner
bbc8b7965b
bpo-38614: Use default join_thread() timeout in tests (GH-17559)
...
Tests no longer pass a timeout value to join_thread() of
test.support: use the default join_thread() timeout instead
(SHORT_TIMEOUT constant of test.support).
2019-12-10 20:41:23 +01:00
Victor Stinner
07871b256c
bpo-38614: Use test.support.LOOPBACK_TIMEOUT constant (GH-17554)
...
Replace hardcoded timeout constants in tests with LOOPBACK_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.
2019-12-10 20:32:59 +01:00
Kyle Stanley
ab513a38c9
bpo-37228: Fix loop.create_datagram_endpoint()'s usage of SO_REUSEADDR ( #17311 )
2019-12-09 15:21:10 +01:00
Andrew Svetlov
7ddcd0caa4
bpo-38529: Fix asyncio stream warning (GH-17474)
2019-12-07 13:22:00 +02:00
xdegaye
559bad1a70
bpo-38841: Skip asyncio test_create_datagram_endpoint_existing_sock_unix (GH-17294)
...
on platforms lacking a functional bind() for named unix domain sockets
https://bugs.python.org/issue38841
Automerge-Triggered-By: @asvetlov
2019-11-20 12:02:07 -08:00
Benjamin Peterson
3ccdd9b180
closes bpo-38692: Add a pidfd child process watcher to asyncio. (GH-17069)
2019-11-13 19:08:50 -08:00
Andrew Svetlov
dad6be5ffe
bpo-38785: Prevent asyncio from crashing (GH-17144)
...
if parent `__init__` is not called from a constructor of object derived from `asyncio.Future`
https://bugs.python.org/issue38785
2019-11-13 13:36:46 -08:00
Victor Stinner
a4ed6ed9f3
bpo-38614: Increase asyncio test_communicate() timeout (GH-16995)
...
Fix test_communicate() of test_asyncio.test_subprocess: use
support.LONG_TIMEOUT (5 minutes), instead of 1 minute.
2019-10-30 16:00:44 +01:00
Victor Stinner
1b53a24fb4
bpo-34679: ProactorEventLoop only uses set_wakeup_fd() in main thread (GH-16901)
...
bpo-34679, bpo-38563: asyncio.ProactorEventLoop.close() now only calls
signal.set_wakeup_fd() in the main thread.
2019-10-23 17:25:29 +02:00
Victor Stinner
fab4ef2df0
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815)
...
main() is now responsible to send the ANSWER, rather than
ServerProto. main() now waits until it got the HELLO before sending
the ANSWER over the new transport.
Previously, there was a race condition between main() replacing the
protocol and the protocol sending the ANSWER once it gets the HELLO.
TLSv1.3 was disabled for the test: reenable it.
2019-10-16 02:36:42 +02:00
Yury Selivanov
6758e6e12a
bpo-38242: Revert "bpo-36889: Merge asyncio streams (GH-13251)" ( #16482 )
...
See https://bugs.python.org/issue38242 for more details
2019-09-29 21:59:55 -07:00
Andrew Svetlov
58498bc717
bpo-38019: correctly handle pause/resume reading of closed asyncio unix pipe (GH-16472)
2019-09-29 15:00:35 +03:00
Yury Selivanov
edad4d89e3
bpo-38248: Fix inconsistent immediate asyncio.Task cancellation (GH-16330)
2019-09-25 03:32:08 -07:00
Victor Stinner
bc2256ea17
bpo-33694: Remove test_asyncio ProactorDatagramTransportTests (GH-16288)
...
ProactorDatagramTransportTests tests are too close to the
implementation.
2019-09-20 23:07:59 +02:00
Victor Stinner
079931d122
bpo-34037: test_asyncio uses shutdown_default_executor() (GH-16284)
2019-09-19 16:45:06 +02:00
Zackery Spytz
81319a81b2
bpo-37199: Replace the early returns added in c2cda63
. (GH-14535)
2019-09-13 16:53:13 +01:00
Andrew Svetlov
9eb35ab0d7
bpo-38148: Add slots to asyncio transports (GH-16077)
...
* bpo-38148: Add slots to asyncio transports
* Update Misc/NEWS.d/next/Library/2019-09-13-08-55-43.bpo-38148.Lnww6D.rst
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
2019-09-13 15:18:46 +03:00
Andrew Svetlov
a488879cba
bpo-36373: Deprecate explicit loop in task and subprocess API (GH-16033)
2019-09-12 15:40:40 +03:00
Andrew Svetlov
9aee90018a
bpo-38107: Replace direct future and task contructor calls with factories in asyncio tests (GH-15928)
2019-09-11 16:07:37 +03:00
Andrew Svetlov
7264e92b71
bpo-36373: Fix deprecation warnings (GH-15889)
...
https://bugs.python.org/issue36373
2019-09-11 01:20:24 -07:00
Andrew Svetlov
12c122ae95
bpo-38066: Hide internal Stream methods (GH-15762)
...
feed_eof(), feed_data(), set_exception(), and set_transport() are prefixed with underscore now.
https://bugs.python.org/issue38066
2019-09-10 05:56:14 -07:00
Emmanuel Arias
537877d85d
bpo-36373: Deprecate explicit loop parameter in all public asyncio APIs [locks] (GH-13920)
...
This PR deprecate explicit loop parameters in all public asyncio APIs
This issues is split to be easier to review.
Third step: locks.py
https://bugs.python.org/issue36373
2019-09-10 03:55:07 -07:00
Serhiy Storchaka
5eca7f3f38
bpo-15999: Always pass bool instead of int to socket.setblocking(). (GH-15621)
2019-09-01 12:12:52 +03:00
Andrew Svetlov
1c06009986
bpo-34679: Restore instantiation Windows IOCP event loop from non-main thread ( #15492 )
...
* Restore running proactor event loop from non-main thread
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
2019-08-26 12:51:08 +03:00
Serhiy Storchaka
662db125cd
bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952)
...
They now return NotImplemented for unsupported type of the other operand.
2019-08-08 08:42:54 +03:00
Victor Stinner
8f4ef3b019
Remove unused imports in tests (GH-14518)
2019-07-01 18:28:25 +02:00
Zackery Spytz
c2cda638d6
bpo-37199: Fix test failures when IPv6 is unavailable or disabled ( #14480 )
2019-06-30 18:24:43 +03:00
Andrew Svetlov
0d671c04c3
bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread (GH-14344)
2019-06-30 12:54:59 +03:00
Andrew Svetlov
97d15b1ee0
Replace deprecation warning with RuntimeError (GH-14397)
2019-06-27 14:38:47 +03:00
Andrew Svetlov
549f7d45c8
Get rid of exception traceback printing in asyncio tests (GH-14343)
2019-06-24 19:47:28 +03:00
Xtreak
186f70905d
bpo-37323: Suppress DeprecationWarning raised by @asyncio.coroutine (GH-14293)
...
When the test is ran with `PYTHONWARNINGS=error` the environment variable is passed to the python interpreter used in `assert_python_ok` where `DeprecationWarning` from `@asyncio.coroutine` is converted into an error. Ignore the `DeprecationWarning` in `assert_python_ok`.
https://bugs.python.org/issue37323
2019-06-22 03:25:25 -07:00
Ned Deily
a514f782b8
bpo-35031: also disable TLS 1.3 for test_start_tls_server_1 on macOS (GH-14188)
2019-06-18 04:37:13 -04:00
Victor Stinner
c034b7824f
bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)
...
bpo-35031, bpo-35998: Reintroduce workaround on Windows and FreeBSD
in test_start_tls_server_1() of test_asyncio: disable TLS v1.3 on the
client context.
2019-06-17 11:47:49 +02:00
Andrew Svetlov
ef2152354f
bpo-37279: Fix asyncio sendfile support when extra data are sent in fallback mode. (GH-14075)
2019-06-15 14:05:08 +03:00
Andrew Svetlov
f0749da9a5
bpo-35998: Avoid TimeoutError in test_asyncio: test_start_tls_server_1() (GH-14080)
2019-06-14 17:26:24 +02:00
Victor Stinner
07559450b2
bpo-37278: Fix test_asyncio ProactorLoopCtrlC (GH-14074)
...
Join the thread to prevent leaking a running thread and leaking a
reference.
Cleanup also the test:
* asyncioWindowsProactorEventLoopPolicy became the default policy,
there is no need to set it manually.
* Only start the thread once the loop is running.
* Use a shorter sleep in the thread (100 ms rather than 1 sec).
* Use close_loop(loop) rather than loop.close().
* Use longer variable names.
2019-06-14 13:02:51 +02:00
Andrew Svetlov
0d1942774a
Make asyncio stream sendfile fail on error (was hang) (GH-14025)
2019-06-12 21:50:23 +03:00
Michael Felt
32dda263e4
bpo-35545: Skip `test_asyncio.test_create_connection_ipv6_scope` on AIX (GH-14011)
...
because "getaddrinfo()" behaves different on AIX
https://bugs.python.org/issue35545
2019-06-12 05:00:56 -07:00
Andrew Svetlov
8d561092d5
bpo-37142: Make asyncio stream tests more robust again (GH-13804)
...
Make test_stream_server_close() implementation following test_stream_server_abort().
Add explicit timeout for tests that can hang.
2019-06-04 15:44:44 +02:00
Andrew Svetlov
35890abb8d
Make StreamServer.close() tests more robust (GH-13790)
2019-06-04 13:37:10 +02:00
Pablo Galindo
4cdbc452ce
bpo-37148: Fix asyncio test that check for warning when running the test suite with huntleaks (GH-13800)
2019-06-04 11:26:20 +01:00