summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-34341: Fix appending to ZIP archives with the ZIP64 extension. (GH-8683)Miss Islington (bot)2018-09-172-0/+36
| | | | | (cherry picked from commit 9bdb7be482aef8f60daa1d36606568a132dcb616) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-34610: Fixed iterator of multiprocessing.managers.DictProxy. (GH-9113)Miss Islington (bot)2018-09-172-1/+27
| | | | | (cherry picked from commit e0e5065daef36dafe10a46eaa8b7800274d73062) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-34603, ctypes/libffi_msvc: Fix returning structs from functions (GH-9258)Miss Islington (bot)2018-09-161-0/+18
| | | | | (cherry picked from commit 7843caeb909bd907e903606414e238db4082315a) Co-authored-by: Vladimir Matveev <v2matveev@outlook.com>
* Change the xkcd link in comment over https. (GH-9294)Miss Islington (bot)2018-09-141-1/+1
| | | | | (cherry picked from commit 83df50ea5757816c7338d27f21fd18b1e79206f7) Co-authored-by: 觉 <Xdminsy@users.noreply.github.com>
* bpo-31132: Remove prlimit permission test. (GH-9280)Miss Islington (bot)2018-09-131-3/+0
| | | | | | | | This test is doesn't work when the test process is privledged, which is hard to detect. https://bugs.python.org/issue34668 (cherry picked from commit 01e0afa994c2e840f85e2de103e72a2c0ddf1b1f) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-34661: Fix test skipping call. (GH-9266)Miss Islington (bot)2018-09-131-1/+1
| | | | | (cherry picked from commit e78734d579439861f6d7e12f35d268836b2c1e24) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262)Miss Islington (bot)2018-09-131-0/+2
| | | | | (cherry picked from commit a710ebd21b09efe902dde84d4862ce5c6427f7af) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-34200: Fix non-determinism of test_pkg (GH-9248)Miss Islington (bot)2018-09-131-8/+9
| | | | | | | | This causes the tearDown code to only unimport the test modules specifically created as part of each test via the self.mkhier method rather than abusing test.support.modules_setup() and the scary test.support.modules_cleanup() code. https://bugs.python.org/issue34200 (cherry picked from commit 4ae8ece5cd4c5853b625381db13429f25512108d) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* closes bpo-34654: Tolerate + at the beginning of large years. (GH-9238)Miss Islington (bot)2018-09-131-3/+3
| | | | | (cherry picked from commit e1a34ceb541ef87e03bb428630097dacc9c658e5) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.6] closes bpo-34650: Check if sched_getscheduler returns ENOSYS before ↵Benjamin Peterson2018-09-121-1/+13
| | | | | | | | declaring it supported. (GH-9237) musl doesn't support the scheduler API, but declares stubs that alway return ENOSYS.. (cherry picked from commit c7042224b8a67748f125c22836862483f81a87a6) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)Miss Islington (bot)2018-09-121-0/+8
| | | | | | | | | | | | | | Returning EINTR from pthread semaphore or lock acquisition is an optional POSIX feature. musl does not provide this feature, so some threadsignal tests fail when Python is built against it. There's no good way to test for musl, so we skip if we're on Linux and not using glibc pthreads. Also, hedge in the threading documentation about when we can provide interrupts from lock acquisition. (cherry picked from commit 5b10d5111d7a855297654af9045f8907b7d3dd08) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.6] closes bpo-31608: Fix a crash in methods of a subclass of ↵Benjamin Peterson2018-09-111-0/+15
| | | | | | | _collections.deque with a bad __new__(). (GH-9178) (cherry picked from commit 24bd50bdcc97d65130c07d6cd26085fd06c3e972) Co-authored-by: Oren Milman <orenmn@gmail.com>
* bpo-32270: Don't close stdin/out/err in pass_fds (GH-6242) (GH-9149)Miss Islington (bot)2018-09-111-0/+30
| | | | | | | | | | | | | | | | | When subprocess.Popen() stdin= stdout= or stderr= handles are specified and appear in pass_fds=, don't close the original fds after dup'ing them. This implementation and unittest primarily came from @izbyshev (see the PR) See also https://github.com/izbyshev/cpython/commit/b89b52f28490b69142d5c061604b3a3989cec66c This also removes the old manual p2cread, c2pwrite, and errwrite closing logic as inheritable flags and _close_open_fds takes care of that properly today without special treatment. This code is within child_exec() where it is the only thread so there is no race condition between the dup and _Py_set_inheritable_async_safe call. (cherry picked from commit ce34410b8b67f49d8275c05d51b3ead50cf97f48) Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
* closes bpo-34525: Fix smtplib's authobject() documentation (GH-8965)Miss Islington (bot)2018-09-101-1/+1
| | | | | (cherry picked from commit 78deb7f33227972987722bc3fed5bcb45fae869e) Co-authored-by: Sebastian Rittau <srittau@rittau.org>
* bpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077)Miss Islington (bot)2018-09-102-12/+78
| | | | | | | | | | | The recursive frame pruning code always undercounted the number of elided frames by one. That is, in the "[Previous line repeated N more times]" message, N would always be one too few. Near the recursive pruning cutoff, one frame could be silently dropped. That situation is demonstrated in the OP of the bug report. The fix is to start the identical frame counter at 1. (cherry picked from commit d545869d084e70d4838310e79b52a25a72a1ca56) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* Test dict values iterator pickling with pickle.HIGHEST_PROTOCOL. (GH-9052)Miss Islington (bot)2018-09-101-1/+1
| | | | | (cherry picked from commit 1f36bf6077d93cb43fd84bea4a8a625fa772d1fa) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* bpo-34421 avoid unicode error in distutils logging (GH-8799)Miss Islington (bot)2018-09-081-1/+4
| | | | | | | This caused installation errors in some cases on Windows. Patch by Julien Malard. (cherry picked from commit 0afada163c7ef25c3a9d46ed445481fb69f2ecaf) Co-authored-by: Julien Malard <julien.malard@mail.mcgill.ca>
* [3.6] bpo-34246: Use no mutable default args in smtplib (GH-8554) (#9112)Pablo Galindo2018-09-082-6/+38
| | | | | | | | Some methods of the SMTP class use mutable default arguments. Specially `send_message` is affected as it mutates one of the args by appending items to it, which has side effects on further calls.. (cherry picked from commit d5fbe9b1a3d65ceeb9159c5ba999ee966a945f76) Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
* [3.6] bpo-34007: Skip traceback tests if the Program Counter is not ↵Pablo Galindo2018-09-071-0/+9
| | | | | | | | | | | | available. (GH-9022) Sometimes some versions of the shared libraries that are part of the traceback are compiled in optimised mode and the Program Counter (PC) is not present, not allowing gdb to walk the frames back. When this happens, the Python bindings of gdb raise an exception, making the test impossible to succeed. (cherry picked from commit f2ef51f8bec525b21e52988880c8a029642795ed) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.6] bpo-34594: Don't hardcode errno values in the tests. (GH-9096)Zackery Spytz2018-09-071-2/+0
| | | (cherry picked from commit b03c2c51909e3b5b5966d86a2829b5ddf2d496aa)
* [3.7] bpo-26544: Get rid of dependence from distutils in platform. (GH-8356) ↵Miss Islington (bot)2018-09-052-1/+66
| | | | | | | | (GH-8970) (GH-9061) (cherry picked from commit 7d81e8f5995df6980a1a02923e224a481375f130) (cherry picked from commit 20a8392cec2967f15ae81633c1775645b3ca40da) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-34530: Fix distutils find_executable() (GH-9049) (GH-9057)Miss Islington (bot)2018-09-052-3/+48
| | | | | | | distutils.spawn.find_executable() now falls back on os.defpath if the PATH environment variable is not set. (cherry picked from commit 39487196c87e28128ea907a0d9b8a88ba53f68d5) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-13312: Avoid int underflow in time year. (GH-8912)Miss Islington (bot)2018-08-251-6/+5
| | | | | | Avoids an integer underflow in the time module's year handling code. (cherry picked from commit 76be0fffff8b7dbe649ad4821144461800ffb0d0) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-6700: Fix inspect.getsourcelines for module level frames/tracebacks ↵Miss Islington (bot)2018-08-243-3/+24
| | | | | | | (GH-8864) (cherry picked from commit 91cb298f811961277fd4cc4a32211899d48bedcb) Co-authored-by: Vladimir Matveev <v2matveev@outlook.com>
* bpo-34415: Updated logging.Formatter docstring. (GH-8811) (GH-8816)Miss Islington (bot)2018-08-191-1/+2
| | | (cherry picked from commit d3d3171da895d8cb880f23fae6be778f0ac23be7)
* [3.6] bpo-34391: Fix ftplib test for TLS 1.3 (GH-8787) (#8790)Miss Islington (bot)2018-08-161-0/+5
| | | | | | | | | | | | | | | Read from data socket to avoid "[SSL] shutdown while in init" exception during shutdown of the dummy server. Signed-off-by: Christian Heimes <christian@python.org> <!-- issue-number: [bpo-34391](https://www.bugs.python.org/issue34391) --> https://bugs.python.org/issue34391 <!-- /issue-number --> (cherry picked from commit 1590c393360df059160145e7475754427bfc6680) Co-authored-by: Christian Heimes <christian@python.org>
* [3.6] bpo-34399: 2048 bits RSA keys and DH params (GH-8762) (GH-8764)Christian Heimes2018-08-1520-459/+759
| | | | | | | | | | | | | Downstream vendors have started to deprecate weak keys. Update all RSA keys and DH params to use at least 2048 bits. Finite field DH param file use RFC 7919 values, generated with certtool --get-dh-params --sec-param=high Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit 88bfd0bce05043f658e50addd21366f317995e35) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976) (GH-8760)Christian Heimes2018-08-151-19/+30
| | | | | | | | | 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 to test with latest OpenSSL. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-32947: Fixes for TLS 1.3 and OpenSSL 1.1.1 (GH-8761)Christian Heimes2018-08-142-7/+27
| | | | | | | | | | | | | | Backport of TLS 1.3 related fixes from 3.7. Misc fixes and workarounds for compatibility with OpenSSL 1.1.1 from git master and TLS 1.3 support. With OpenSSL 1.1.1, Python negotiates TLS 1.3 by default. Some test cases only apply to TLS 1.2. OpenSSL 1.1.1 has added a new option OP_ENABLE_MIDDLEBOX_COMPAT for TLS 1.3. The feature is enabled by default for maximum compatibility with broken middle boxes. Users should be able to disable the hack and CPython's test suite needs it to verify default options Signed-off-by: Christian Heimes <christian@python.org>
* bpo-34047: IDLE: fix mousewheel scrolling direction on macOS (GH-8678)Miss Islington (bot)2018-08-101-6/+17
| | | | | (cherry picked from commit 077059e0f086cf8c8b7fb9d1f053e38ddc743f59) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-18540: Fix EAI_NONAME in imaplib.IMAP4*() (GH-8634)Miss Islington (bot)2018-08-072-1/+19
| | | | | (cherry picked from commit e4dcbbd7f4ac18d01c0ec85f64ae98b8281ed403) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* bpo-31047: Fix ntpath.abspath for invalid paths (GH-8544)Steve Dower2018-08-072-22/+24
|
* [3.6] bpo-34272: Move argument parsing tests from test_capi to ↵Serhiy Storchaka2018-08-062-291/+182
| | | | | | test_getargs2. (GH-8567). (GH-8690) (cherry picked from commit 8f7bb100d0fa7fb2714f3953b5b627878277c7c6)
* bpo-19891: Ignore error while writing history file (GH-8483)Miss Islington (bot)2018-08-061-1/+10
| | | | | (cherry picked from commit b2499669ef2e6dc9a2cdb49b4dc498e078167e26) Co-authored-by: Anthony Sottile <asottile@umich.edu>
* bpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests ↵Miss Islington (bot)2018-08-056-144/+415
| | | | | | | | | | | (GH-7683) * make CallTip and ToolTip sub-classes of a common abstract base class * remove ListboxToolTip (unused and ugly) * greatly increase test coverage * tested on Windows, Linux and macOS (cherry picked from commit 87e59ac11ee074b0dc1bc864c74fac0660b27f6e) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-34329: Doc'd how to remove suffix of pathlib.Path() (GH-8655)Miss Islington (bot)2018-08-031-2/+4
| | | | | (cherry picked from commit 46dc4e34ed8005a688d7f3512844ef227a3465f4) Co-authored-by: Stefan Otte <stefan.otte@gmail.com>
* bpo-30317: Fix multiprocessing test_timeout() (GH-8621)Pablo Galindo2018-08-031-3/+4
| | | | | | | | Multiprocessing test_timeout() now accepts a delta of 100 ms instead of just 50 ms, since the test failed with 135.8 ms instead of the expected 200 ms. (cherry picked from commit 5640d030e100aade54210034828b711c3b506b18) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* Fix docstring of Profiler class (GH-8651)Miss Islington (bot)2018-08-031-2/+2
| | | | | (cherry picked from commit 2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639)Miss Islington (bot)2018-08-031-0/+1
| | | | | | | | Some MacOS-tk combinations need .update_idletasks(). The call is both unneeded and innocuous on Linux and Windows. Patch by Kevin Waltzer. (cherry picked from commit 9beaef6225cdae972b1cccd5310828cc29bf9d33) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-27910: Update documentation of traceback module (GH-6116)Miss Islington (bot)2018-08-021-13/+16
| | | | | | | | | | | | In the documentation for the traceback module, the definitions of functions extract_tb(), format_list() and classmethod StackSummary.from_list() mention the old style 4-tuples that these functions used to return or accept. Since Python 3.5, however, they return or accept a FrameSummary object instead of a 4-tuple, or a StackSummary object instead of a list of 4-tuples. Co-authored-by: torsava <torsava@redhat.com> Co-Authored-By: Berker Peksag <berker.peksag@gmail.com> (cherry picked from commit f394ee5eaf6d6d8f45e0478e77d4dbff25c6bea7)
* bpo-34120: fix text viewer to call grab_release() only when needed (GH-8616)Miss Islington (bot)2018-08-021-2/+4
| | | | | (cherry picked from commit dd74369cb7b230b07ac3a031563406c8f2aae17f) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)Miss Islington (bot)2018-08-025-0/+9
| | | | | | Added missing .grab_release() calls to all places where we call .grab_set(). (cherry picked from commit 10ea9409ceb5da83cb380b610750551e26561044) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* [3.6] bpo-34263 Cap timeout submitted to epoll/select etc. to one day. ↵Miss Islington (bot)2018-07-311-1/+4
| | | | (GH-8532) (GH-8587)
* [3.6] bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931) ↵Serhiy Storchaka2018-07-312-15/+62
| | | | | | | | | | | | | | (GH-8584) * Fix integer overflow in os.readv(), os.writev() and in os.sendfile() with headers or trailers arguments (on BSD-based OSes and MacOS). * Fix sending the part of the file in os.sendfile() on MacOS. Using the trailers argument could cause sending more bytes from the input file than was specified. Thanks Ned Deily for testing on 32-bit MacOS. (cherry picked from commit 9d5727326af53ddd91016d98e16ae7cf829caa95)
* bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. ↵Miss Islington (bot)2018-07-291-2/+2
| | | | | | | (GH-8464) (cherry picked from commit 5473f061f518aef5367a535999a407305fb12aff) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-33476: Fix _header_value_parser when address group is missing final ';' ↵Miss Islington (bot)2018-07-282-1/+26
| | | | | | | (GH-7484) (cherry picked from commit 8fe9eed937cb69b5e26ac6e36a90b5360eb11277) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* [3.6] bpo-29097: Forego fold detection on windows for low timestamp values ↵Ammar Askar2018-07-272-1/+14
| | | | | | | | (GH-2385) (GH-8498) On Windows, passing a negative value to local results in an OSError because localtime_s on Windows does not support negative timestamps. Unfortunately this means that fold detection for timestamps between 0 and max_fold_seconds will result in this OSError since we subtract max_fold_seconds from the timestamp to detect a fold. However, since we know there haven't been any folds in the interval [0, max_fold_seconds) in any timezone, we can hackily just forego fold detection for this time range on Windows.. (cherry picked from commit 96d1e69a12ed8ab80203277e1abdaf573457a964) Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
* bpo-32663 Make SMTPUTF8SimTests run (GH-5314) (#8470)Miss Islington (bot)2018-07-261-25/+14
| | | | | | | | | | | | | | Enable and fix SMTPUTF8SimTests in test_smtplib. The tests for SMTPUTF8SimTests in test_smtplib.py were not actually being run because test_smtplib was still using the 'test_main' pattern, and the class was never added to test_main. Additionally, one of the tests needed to be moved to the non-UTF8 server class because it relies on the server not being UTF-8 compatible (and it had a bug in in). (cherry picked from commit 48ed88a93bb0bbeaae9a4cfaa533e4edf13bcb51) Co-authored-by: chason <chason@gmail.com>
* [3.6] bpo-34164: Fix handling of incorrect padding in base64.b32decode(). ↵Serhiy Storchaka2018-07-242-17/+19
| | | | | | | | | (GH-8351) (GH-8436) Now base64.Error is always raised instead of UnboundLocalError or OverflowError. (cherry picked from commit ac0b3c2f4d86fc056b833a4e6b9a380741244a63) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.6] bpo-34136: Make test_do_not_recreate_annotations more reliable. ↵Miss Islington (bot)2018-07-241-5/+8
| | | | | | | | (GH-8364) (GH-8366) (cherry picked from commit 06ca3f0c09d017b9d741553818459cca2d5da587) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>