summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* bpo-22087: Fix Policy.get_event_loop() to detect fork (GH-7208)Yury Selivanov2018-05-291-0/+32
| | | | Original patch by Dan O'Reilly.
* Attempt to fix test_stdin_broken_pipe on Travis (#7210)Yury Selivanov2018-05-291-0/+1
|
* bpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636)Dong-hee Na2018-05-291-3/+22
|
* bpo-33353: test_asyncio use set_write_buffer_limits() (GH-7200)Victor Stinner2018-05-291-17/+29
| | | | | | | Use transport.set_write_buffer_limits() in sendfile tests of test_asyncio to make sure that the protocol is paused after sending 4 KiB. Previously, test_sendfile_fallback_close_peer_in_the_middle_of_receiving() failed on FreeBSD if the DATA was smaller than the default limit of 64 KiB.
* bpo-32911: Revert bpo-29463. (GH-7121) (GH-7197)Serhiy Storchaka2018-05-292-79/+64
| | | | | | Remove the docstring attribute of AST types and restore docstring expression as a first stmt in their body. Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* bpo-33654: Support protocol type switching in SSLTransport.set_protocol() ↵Yury Selivanov2018-05-291-11/+36
| | | | (#7194)
* bpo-32410: Avoid blocking on file IO in sendfile fallback code (GH-7172)Yury Selivanov2018-05-282-0/+14
|
* bpo-32610: Fix asyncio.all_tasks() to return only pending tasks. (GH-7174)Yury Selivanov2018-05-281-2/+27
|
* bpo-33469: RuntimeError after closing loop that used run_in_executor (GH-7171)Yury Selivanov2018-05-281-0/+18
|
* bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines (GH-7161)Yury Selivanov2018-05-281-0/+10
|
* bpo-32458: Further tune start_tls tests (#7166)Yury Selivanov2018-05-281-4/+6
|
* regrtest: repeat summary after re-run (GH-7159)Victor Stinner2018-05-281-6/+19
| | | | Using -w, when failing tests are re-run in verbose mode, display again the tests results at the end.
* bpo-33654: Support BufferedProtocol in set_protocol() and start_tls() (GH-7130)Yury Selivanov2018-05-285-35/+257
| | | | | | | | | | | In this commit: * Support BufferedProtocol in set_protocol() and start_tls() * Fix proactor to cancel readers reliably * Update tests to be compatible with OpenSSL 1.1.1 * Clarify BufferedProtocol docs * Bump TLS tests timeouts to 60 seconds; eliminate possible race from start_serving * Rewrite test_start_tls_server_1
* bpo-31647: Fix write_eof() after close() for SelectorSocketTransport (GH-7149)twisteroid ambassador2018-05-281-0/+6
| | | | | Fixed bug where calling write_eof() on a _SelectorSocketTransport after it's already closed raises AttributeError.
* bpo-32374: Ignore Python-level exceptions in test_bad_traverse (GH-7145)Marcel Plch2018-05-281-7/+13
|
* bpo-32380: Create functools.singledispatchmethod (#6306)Ethan Smith2018-05-261-0/+118
|
* bpo-33655: Also ignore test_posix_fallocate failures on BSD platforms (GH-7134)Ned Deily2018-05-261-1/+6
| | | | The failure may be due to the use oF ZFS, a case we already ignore for Solaris-based systems where ZFS is frequently used.
* test.regrtest: flush stdout when display progress (#7105)Victor Stinner2018-05-251-2/+2
| | | runtest_mp.py: call print() with flush=True.
* bpo-33629: Prevent coredump in test_importlib (GH-7090)Victor Stinner2018-05-241-1/+4
| | | | | bpo-32374, bpo-33629: Use support.SuppressCrashReport() in test_bad_traverse() of MultiPhaseExtensionModuleTests to prevent leaking a core dump file.
* bpo-33109: argparse subparsers are once again not required by default (GH-6919)Ned Deily2018-05-241-1/+3
| | | | | | | | | bpo-26510 in 3.7.0a2 changed the behavior of argparse to make subparsers required by default, returning to the behavior of 2.7 and 3.2. The behavior was changed in 3.3 to be no longer required. While it might make more sense to have the default to required, compatibility with 3.3 through 3.6 is probably less disruptive than trying to reintroduce compatibility with 2.7 at this point. This change restores the 3.6 behavior.
* bpo-33353: test_asyncio set SO_SNDBUF after connect (GH-7086)Victor Stinner2018-05-241-3/+9
| | | | | bpo-32622, bpo-33353: On macOS, sock.connect() changes the SO_SNDBUF value. Only set SO_SNDBUF and SO_RCVBUF buffer sizes once a socket is connected or binded, not before.
* bpo-33353: test_asyncio uses smaller sendfile data (#7083)Victor Stinner2018-05-231-2/+2
| | | | | | | | | | | | | bpo-32622, bpo-33353: sendfile() tests of test_asyncio use socket buffers of 1 kB "to test on relative small data sets". Send only 160 KiB rather 10 MB to make the test much faster. Shrink also SendfileBase.DATA from 1600 KiB to 160 KiB. On Linux, 3 test_sock_sendfile_mix_with_regular_send() runs now take less than 1 second, instead of 18 seconds. On FreeBSD, the 3 tests didn't hang, but took 3 minutes. Now the 3 tests pass in less than 1 seconds.
* bpo-33618: Enable TLS 1.3 in tests (GH-7079)Christian Heimes2018-05-235-33/+80
| | | | | | | | | | | | TLS 1.3 behaves slightly different than TLS 1.2. Session tickets and TLS client cert auth are now handled after the initialy handshake. Tests now either send/recv data to trigger session and client certs. Or tests ignore ConnectionResetError / BrokenPipeError on the server side to handle clients that force-close the socket fd. To test TLS 1.3, OpenSSL 1.1.1-pre7-dev (git master + OpenSSL PR https://github.com/openssl/openssl/pull/6340) is required. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-27300: Add the errors parameter to tempfile classes. (GH-6696)sth2018-05-231-1/+10
|
* bpo-33604: Remove Pending from hmac Deprecation warning. (GH-7062)Matthias Bussonnier2018-05-221-2/+2
| | | bpo-33604: Bump removal notice from 3.6 to 3.8 and change PendingDeprecationWarning to DeprecationWarning as we had intended to do earlier...
* bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976)Christian Heimes2018-05-221-29/+22
| | | | | | | | | | Change TLS 1.3 cipher suite settings for compatibility with OpenSSL 1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 cipers enabled by default. Also update multissltests and Travis config to test with latest OpenSSL. Signed-off-by: Christian Heimes <christian@python.org>
* Improve comments in test_idle.py. (GH-7057)Terry Jan Reedy2018-05-221-6/+8
|
* bpo-30877: Fix clearing a cache in the the JSON decoder. (GH-7048)Serhiy Storchaka2018-05-221-1/+3
|
* Use IPv4 only to avoid IP address collision (#7030)Andrew Svetlov2018-05-211-6/+4
|
* Fix asyncio flaky tests (#7023)Andrew Svetlov2018-05-211-2/+3
|
* bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450)Vlad Starostin2018-05-211-0/+15
| | | | | | | | | * bpo-33263 Fix FD leak in _SelectorSocketTransport. (GH-6450) Under particular circumstances _SelectorSocketTransport can try to add a reader even the transport is already being closed. This can lead to FD leak and invalid stated of the following connections. Fixed the SelectorSocketTransport to add the reader only if the trasport is still active.
* bpo-26103: Fix inspect.isdatadescriptor() and a data descriptor definition. ↵Aaron Hall, MBA2018-05-201-1/+56
| | | | | | (GH-1959) Look for '__set__' or '__delete__'.
* bpo-32262: Fix typo in f-string (GH-7016)Christian Heimes2018-05-201-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix typo from commit 6370f345e1d5829e1fba59cd695c8b82c5a8c620 Signed-off-by: Christian Heimes <christian@python.org> <!-- Thanks for your contribution! Please read this comment in its entirety. It's quite important. # Pull Request title It should be in the following format: ``` bpo-NNNN: Summary of the changes made ``` Where: bpo-NNNN refers to the issue number in the https://bugs.python.org. Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue. # Backport Pull Request title If this is a backport PR (PR made against branches other than `master`), please ensure that the PR title is in the following format: ``` [X.Y] <title from the original PR> (GH-NNNN) ``` Where: [X.Y] is the branch name, e.g. [3.6]. GH-NNNN refers to the PR number from `master`. --> <!-- issue-number: bpo-32262 --> https://bugs.python.org/issue32262 <!-- /issue-number -->
* bpo-26819: Prevent proactor double read on resume (#6921)CtrlZvi2018-05-201-1/+8
| | | | | | | | | | The proactor event loop has a race condition when reading with pausing/resuming. `resume_reading()` unconditionally schedules the read function to read from the current future. If `resume_reading()` was called before the previously scheduled done callback fires, this results in two attempts to get the data from the most recent read and an assertion failure. This commit tracks whether or not `resume_reading` needs to reschedule the callback to restart the loop, preventing a second attempt to read the data.
* bpo-23722: Raise a RuntimeError for absent __classcell__. (GH-6931)Serhiy Storchaka2018-05-201-34/+10
| | | A DeprecationWarning was emitted in Python 3.6-3.7.
* bpo-28556: Don't simplify unions at runtime (GH-6841)Ivan Levkivskyi2018-05-181-12/+12
|
* Provide a little better debug output (#6940)Barry Warsaw2018-05-171-1/+1
|
* bpo-32604: Implement force-closing channels. (gh-6937)Eric Snow2018-05-171-4/+96
| | | This will make it easier to clean up channels (e.g. when used in tests).
* bpo-33549: Remove shim and deprecation warning to access DocumentLS.async. ↵Matthias Bussonnier2018-05-171-10/+0
| | | | | | (GH-6924) `obj.async` is now a syntax error, so the warning/shim is quasi-unnecessary.
* bpo-33475: Fix and improve converting annotations to strings. (GH-6774)Serhiy Storchaka2018-05-171-63/+64
|
* bpo-33522: Enable CI builds on Visual Studio Team Services (#6865)Steve Dower2018-05-166-13/+56
|
* bpo-32604: Improve subinterpreter tests. (#6914)Eric Snow2018-05-161-199/+995
| | | Add more tests for subinterpreters. This patch also fixes a few small defects in the channel implementation.
* Fix ClassVar as string fails when getting type hints (GH-6824)Nina Zakharenko2018-05-161-0/+24
|
* bpo-28167: Remove platform.linux_distribution (GH-6871)Petr Viktorin2018-05-162-107/+7
| | | | | | | | * test_ssl: Remove skip_if_broken_ubuntu_ssl We no longer support OpenSSL 0.9.8.15.15. * bpo-28167: Remove platform.linux_distribution
* bpo-33536: Validate make_dataclass() field names. (GH-6906)Eric V. Smith2018-05-161-108/+165
|
* bpo-21475: Support the Sitemap extension in robotparser (GH-6883)Christopher Beacham2018-05-161-0/+21
|
* bpo-32384: Skip test when _testcapi isn't available (GH-4940)Isaiah Peng2018-05-161-1/+7
|
* bpo-33453: Handle string type annotations in dataclasses. (GH-6768)Eric V. Smith2018-05-165-2/+279
|
* bpo-33509: Fix _warnings for module_globals=None (#6833)Victor Stinner2018-05-151-0/+19
| | | Don't crash on warnings.warn_explicit() if module_globals is not a dict.
* bpo-33465: Use an unlikely to be built-in C extension in a test (#6797)Barry Warsaw2018-05-151-5/+6
|