summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33652: Improve pickle support in the typing module. (GH-7123)Serhiy Storchaka2018-05-261-8/+19
| | | | Pickles of type variables and subscripted generics are now future-proof and compatible with older Python versions.
* 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-33628: IDLE: Minor code cleanup of codecontext.py and its tests (GH-7085)Cheryl Sabella2018-05-243-59/+60
|
* bpo-33109: argparse subparsers are once again not required by default (GH-6919)Ned Deily2018-05-242-2/+4
| | | | | | | | | 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-33540: Add block_on_close attr to socketserver (GH-6911)Victor Stinner2018-05-241-6/+11
| | | | Add a new block_on_close class attribute to ForkingMixIn and ThreadingMixIn classes of socketserver to opt-in for pre-3.7 behaviour.
* 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-232-20/+26
|
* Reverse the meaning of is_argument when used for type check (GH-7039)Nina Zakharenko2018-05-231-4/+4
|
* bpo-33604: Remove Pending from hmac Deprecation warning. (GH-7062)Matthias Bussonnier2018-05-222-5/+7
| | | 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>
* bpo-33516: Add support for __round__ in MagicMock (GH-6880)John Reese2018-05-222-1/+6
| | | unittest.mock.MagicMock now supports the __round__() magic method.
* 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-222-2/+4
|
* 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-212-3/+24
| | | | | | | | | * 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-202-3/+58
| | | | | | (GH-1959) Look for '__set__' or '__delete__'.
* bpo-32262: Fix typo in f-string (GH-7016)Christian Heimes2018-05-202-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-33541: Remove unused __pad function (GH-4377)Mario Corchero2018-05-201-9/+0
| | | Function was added with the initial implementation 00efe7e798.
* bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922)CtrlZvi2018-05-201-1/+1
| | | | | | uuid._ipconfig_getnode did not validate the maximum length of the value, so long as the value had the same type of formatting as a MAC address. This let it select DUIDs as MAC addresses. It now requires an exact length match.
* bpo-33584: Fix several minor bugs in asyncio. (GH-7003)Serhiy Storchaka2018-05-201-1/+1
| | | | | | | | | | | | Fix the following bugs in the C implementation: * get_future_loop() silenced all exceptions raised when look up the get_loop attribute, not just an AttributeError. * enter_task() silenced all exceptions raised when look up the current task, not just a KeyError. * repr() was called for a borrowed link in enter_task() and task_step_impl(). * str() was used instead of repr() in formatting one error message (in Python implementation too). * There where few reference leaks in error cases.
* bpo-26819: Prevent proactor double read on resume (#6921)CtrlZvi2018-05-202-2/+15
| | | | | | | | | | 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-30928: Update idlelib/NEWS.txt. (#6995)Terry Jan Reedy2018-05-201-0/+5
|
* bpo-32831: IDLE: Add docstrings and tests for codecontext (GH-5638)Cheryl Sabella2018-05-192-13/+397
|
* bpo-28556: Don't simplify unions at runtime (GH-6841)Ivan Levkivskyi2018-05-182-41/+15
|
* bpo-33556: Remove reference to thread module from docstring (GH-6963)Skip Montanaro2018-05-181-1/+1
|
* bpo-33564: Add async to IDLE's code context block openers. (GH-6960)Terry Jan Reedy2018-05-181-1/+1
|
* Provide a little better debug output (#6940)Barry Warsaw2018-05-171-1/+1
|
* bpo-33537: Add an __all__ to importlib.resources (#6920)Barry Warsaw2018-05-171-8/+20
|
* 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-172-32/+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-167-14/+59
|
* 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-162-6/+37
|
* bpo-28167: Remove platform.linux_distribution (GH-6871)Petr Viktorin2018-05-163-263/+12
| | | | | | | | * 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-162-108/+180
|
* bpo-21475: Support the Sitemap extension in robotparser (GH-6883)Christopher Beacham2018-05-162-0/+33
|
* bpo-33534: Remove unneeded test. (GH-6897)Eric V. Smith2018-05-161-6/+5
| | | This condition as already tested before this code is called.
* Reflow dataclasses comments (GH-6893)Eric V. Smith2018-05-161-170/+176
| | | To be more consistent with other code (and so people stop hassling me!), reflow the dataclasses comments to not use a single space indentation when continuing a paragraph of text.
* 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-166-20/+395
|
* bpo-30928: Update idlelib/NEWS.txt to 2018-05-14. (#6873)Terry Jan Reedy2018-05-151-0/+21
|
* 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
|
* bpo-29706: Test that IDLE colors async/await as keywords. (GH-6846)Terry Jan Reedy2018-05-151-3/+2
| | | | | Added to the eye-verified htest, not to the unittests. Also remove some stray leftover comments.