summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't run AC_STRUCT_TIMEZONE twice. (GH-9305)Miss Islington (bot)2018-09-142-76/+0
| | | | | (cherry picked from commit a4414ef20b971e6803309acebfa85b1621ac625e) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* Note that distinct argument patterns can be cached separately (GH-9298) ↵Miss Islington (bot)2018-09-141-0/+5
| | | | | | | (GH-9299) (cherry picked from commit 902bcd9a1e2c73c6de5510b771c590b618c4c94e) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.7] bpo-34490: Fix test_asyncio for AIX - do not call ↵Andrew Svetlov2018-09-132-4/+8
| | | | | | | | | | | transport.get_extra_info('sockname') (GH-8907) (#9286) * [3.7] Fix test_asyncio for AIX - do not call transport.get_extra_info('sockname') (GH-8907). (cherry picked from commit 413118ebf3162418639a5c4af14b02d26571a02c) Co-authored-by: Michael Felt <aixtools@users.noreply.github.com> * Update test_events.py
* 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>
* closes bpo-34664: Only check file permission bits of newly created ↵Miss Islington (bot)2018-09-131-2/+2
| | | | | | | directories. (GH-9273) (cherry picked from commit 84db4a9978069a98978e9cd7951d1a01d47e5286) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-34247: add porting note to 3.7 What's New (GH-9223)Miss Islington (bot)2018-09-131-0/+10
| | | | | (cherry picked from commit 66755cbb1e529f54c9066639ebbbac81add0affd) Co-authored-by: Ned Deily <nad@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-132-0/+3
| | | | | (cherry picked from commit a710ebd21b09efe902dde84d4862ce5c6427f7af) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-34658: Fix rare subprocess prexec_fn fork error. (GH-9255)Miss Islington (bot)2018-09-132-7/+16
| | | | | | | | | | [bpo-34658](https://www.bugs.python.org/issue34658): Fix a rare interpreter unhandled exception state SystemError only seen when using subprocess with a preexec_fn while an after_parent handler has been registered with os.register_at_fork and the fork system call fails. https://bugs.python.org/issue34658 (cherry picked from commit a20b6adb5a5880fd22c099961eb9f9787739cefe) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-34652: Remove lchmod from the big func checking block. (GH-9247)Miss Islington (bot)2018-09-122-3/+9
| | | | | | A fix for 883702ebb8bbfa749ef0040d1b58d6222bf589ee. (cherry picked from commit ed709d5699716bf7237856dc20aba321e2dfff6d) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-34200: Fix non-determinism of test_pkg (GH-9248)Miss Islington (bot)2018-09-122-8/+12
| | | | | | | | 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-121-3/+3
| | | | | (cherry picked from commit e1a34ceb541ef87e03bb428630097dacc9c658e5) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* closes bpo-34652: Always disable lchmod on Linux. (GH-9234)Miss Islington (bot)2018-09-123-0/+19
| | | | | (cherry picked from commit 40caa05fa4d1810a1a6bfc34e0ec930c351089b7) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.7] closes bpo-34650: Check if sched_getscheduler returns ENOSYS before ↵Benjamin Peterson2018-09-121-1/+13
| | | | | | | | declaring it supported. (GH-9236) 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>
* bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225)Miss Islington (bot)2018-09-131-3/+3
| | | | | | Reported by Svace static analyzer. (cherry picked from commit 6f82bffd2df63a4072b3f0483cdbe93ddedb87e9) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)Miss Islington (bot)2018-09-122-1/+10
| | | | | | | | | | | | | | 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>
* bpo-31577: Fix a crash in os.utime() in case of a bad ns argument. (GH-3752)Miss Islington (bot)2018-09-123-0/+24
| | | | | (cherry picked from commit 0bd1a2dcfdf36b181385ae61361e7692f4ebb0fd) Co-authored-by: Oren Milman <orenmn@gmail.com>
* closes bpo-31903: Release the GIL when calling into SystemConfiguration ↵Miss Islington (bot)2018-09-122-0/+8
| | | | | | | (GH-4178) (cherry picked from commit 4859ba0d2ce4506fddc3f55f90f8dce031b3804f) Co-authored-by: Max Bélanger <aeromax@gmail.com>
* [3.7] closes bpo-25041: Document AF_PACKET socket address format. (GH-9207)Benjamin Peterson2018-09-113-13/+39
| | | | | (cherry picked from commit 731ff68eeef58babdf2b32dc9a73b141760c2be9) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* Delete old expat comment. (GH-9197)Miss Islington (bot)2018-09-111-8/+0
| | | | | (cherry picked from commit b9bf9d025e659b5a1963027eb73690e57cb35dd0) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* Make sure the line comes from the same node as the col offset. (GH-9189)Miss Islington (bot)2018-09-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Followup to 90fc8980bbcc5c7dcced3627fe172b0bfd193a3b. <!-- Thanks for your contribution! Please read this comment in its entirety. It's quite important. GH- 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. GH- 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`. --> (cherry picked from commit d13e59c1b512069d90efe7ee9b613d3913e79c56) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* closes bpo-31902: Fix the col_offset attribute for ast.Async* nodes to point ↵Miss Islington (bot)2018-09-113-22/+28
| | | | | | | | to the "async" keyword. (GH-4175) Previously, col_offset points to the keyword after "async". (cherry picked from commit 90fc8980bbcc5c7dcced3627fe172b0bfd193a3b) Co-authored-by: guoci <zguoci@gmail.com>
* bpo-34365: Update date object documentation (GH-8814)Miss Islington (bot)2018-09-111-4/+3
| | | | | | | | | | Python 3.x does not fall back to comparing object addresses when comparing two `dt` objects. <!-- issue-number: [bpo-34365](https://www.bugs.python.org/issue34365) --> https://bugs.python.org/issue34365 <!-- /issue-number --> (cherry picked from commit 9c223794c754408644c16349b85dd27fdba8a926) Co-authored-by: Danish Prakash <grafitykoncept@gmail.com>
* Update VSTS to Azure DevOps and simplify dependencies (GH-9168)Steve Dower2018-09-119-120/+34
|
* closes bpo-31608: Fix a crash in methods of a subclass of _collections.deque ↵Miss Islington (bot)2018-09-113-4/+30
| | | | | | | with a bad __new__(). (GH-3788) (cherry picked from commit 24bd50bdcc97d65130c07d6cd26085fd06c3e972) Co-authored-by: Oren Milman <orenmn@gmail.com>
* bpo-34613: document the correct value of limit argument of ↵Miss Islington (bot)2018-09-111-1/+3
| | | | | | | | | | | | asyncio.StreamReader (GH-9121) The default value of asyncio.StreamReader *limit* is `_DEFAULT_LIMIT` instead of `None`. <!-- issue-number: [bpo-34613](https://www.bugs.python.org/issue34613) --> https://bugs.python.org/issue34613 <!-- /issue-number --> (cherry picked from commit b4ec36200a959da70eba94c19826446a8efdffdd) Co-authored-by: Bram <cortex@worlddomination.be>
* bpo-28617 Fixed docs inaccuracies about the types that support membership ↵Miss Islington (bot)2018-09-112-2/+4
| | | | | | | | | | tests (GH-9086) <!-- issue-number: [bpo-28617](https://www.bugs.python.org/issue28617) --> https://bugs.python.org/issue28617 <!-- /issue-number --> (cherry picked from commit 08bcf647d8a92e4bd47531588b284c6820b7a7ef) Co-authored-by: wim glenn <wim.glenn@gmail.com>
* bpo-34405: Update to OpenSSL 1.1.0i for macOS installer builds (GH-9166) ↵Miss Islington (bot)2018-09-112-3/+4
| | | | | | | (GH-9167) (cherry picked from commit 3102e24d83315eee42a94c460956fbcb92ac510f) Co-authored-by: Ned Deily <nad@python.org>
* closes bpo-33883: Mention type checkers in the FAQ. (GH-7760)Miss Islington (bot)2018-09-101-0/+5
| | | | | (cherry picked from commit a37825418649873a0fa971dc7e5e6d142c124574) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-34625: Update vendorized expat version to 2.2.6. (GH-9150)Miss Islington (bot)2018-09-105-27/+70
| | | | | (cherry picked from commit 5033aa77aacaa5505636f150e8d54baac5bdca9c) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-33032: Mention the implicit cache in struct.Struct() docs (GH-7700)Miss Islington (bot)2018-09-101-0/+6
| | | | | | | | Mention the implicit cache in struct.Struct() docs. Consistent with the re.compile documentation note. (cherry picked from commit 3666b3c1f695a145adab1bf644c22e564e8eb0ee) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-32270: Don't close stdin/out/err in pass_fds (GH-6242) (GH-9148)Miss Islington (bot)2018-09-103-10/+46
| | | | | | | | | | | | | | | | | 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]
* Fix missing line from example shell session (GH-9143) (GH-9155)Miss Islington (bot)2018-09-101-0/+1
| | | | | (cherry picked from commit 2064bb6d576ff7016d59318038779f428b0f0f3f) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-33460: remove ellipsis that look like continuation prompts (GH-7851)Miss Islington (bot)2018-09-102-4/+11
| | | | | | | Remove ellipsis that look like continuation prompts, has a side benefit of putting rest of error message in proper text color. (cherry picked from commit f019579828ed62653e2d41c95278308fa076ccaf) Co-authored-by: Lew Kurtz <37632626+lew18@users.noreply.github.com>
* switch descriptor howto to return value annotation (GH-7796)Miss Islington (bot)2018-09-101-3/+3
| | | | | (cherry picked from commit 28ea4c284724283265e95d1d1716c9f1dfc2d741) Co-authored-by: NotAFile <notafile@gmail.com>
* closes bpo-34525: Fix smtplib's authobject() documentation (GH-8965)Miss Islington (bot)2018-09-102-3/+3
| | | | | (cherry picked from commit 78deb7f33227972987722bc3fed5bcb45fae869e) Co-authored-by: Sebastian Rittau <srittau@rittau.org>
* [3.7] Fix misleading mentions of tp_size in comments. (GH-9136)Benjamin Peterson2018-09-1014-19/+19
| | | | | | | Many type object initializations labeled a field "tp_size" in the comment, but the name of that field is tp_basicsize.. (cherry picked from commit 0e0bc4e221f592f305d335faf5f8046484eb9238) Co-authored-by: Peter Eisentraut <peter@eisentraut.org>
* [3.7] bpo-34282: Fix Enum._convert method shadowing members named _convert ↵orlnub1232018-09-103-4/+24
| | | | | (GH-9034) * Fix Enum._convert shadowing members named _convert
* bpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077)Miss Islington (bot)2018-09-104-26/+96
| | | | | | | | | | | 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>
* [3.7] bpo-34621: fix uuid.UUID (un)pickling compatbility with older Python ↵Tal Einat2018-09-103-0/+156
| | | | versions (<3.7) (GH-9133)
* 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>
* Revert "Fix misindented yaml in logging how to example (GH-8604)" (GH-9081)Miss Islington (bot)2018-09-101-3/+3
| | | | | | This reverts commit 10b59f1b019cd00c940dd7f4a74c4f667a20f25f. (cherry picked from commit 290a60bd8af7b1d7e7931aa4dd4eace60d355d76) Co-authored-by: Rémy HUBSCHER <hubscher.remy@gmail.com>
* [3.7] bpo-34604: Fix possible mojibake in pwd.getpwnam() and grp.getgrnam() ↵William Grzybowski2018-09-093-2/+4
| | | | | | | | | (GH-9098) (GH-9104) Pass the user/group name as Unicode to the formatting function, instead of always decoding a bytes string from UTF-8.. (cherry picked from commit 28658485a54ad5f9df52ecc12d9046269f1654ec) Co-authored-by: William Grzybowski <wg@FreeBSD.org>
* bpo-34421 avoid unicode error in distutils logging (GH-8799)Miss Islington (bot)2018-09-082-1/+5
| | | | | | | 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>
* bpo-34246: Use no mutable default args in smtplib (GH-8554)Miss Islington (bot)2018-09-075-8/+39
| | | | | | | | 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>
* bpo-23855: Add missing NULL checks for malloc() in _msi.c (GH-9038)Miss Islington (bot)2018-09-071-0/+7
| | | | | (cherry picked from commit 4e519377b1b84c9414a360961276993d24198825) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.7] bpo-34594: Don't hardcode errno values in the tests. (GH-9094)Zackery Spytz2018-09-072-2/+1
| | | (cherry picked from commit b03c2c51909e3b5b5966d86a2829b5ddf2d496aa)
* Doc: Missing 'f' in an f-string. (GH-9074) (GH-9095)Miss Islington (bot)2018-09-071-1/+1
| | | | | (cherry picked from commit 25fa141487e61b94f15289619cb3af764cf65e58) Co-authored-by: Julien Palard <julien@palard.fr>
* bpo-25750: fix refcounts in type_getattro() (GH-6118)Miss Islington (bot)2018-09-072-6/+13
| | | | | | | When calling tp_descr_get(self, obj, type), make sure that we own a strong reference to "self". (cherry picked from commit 8f735485acf2e35a75d2fa019feb8f905598c4e5) Co-authored-by: jdemeyer <jdemeyer@cage.ugent.be>
* bpo-34542: Update test certs and keys (GH-8997) (GH-9007)Miss Islington (bot)2018-09-0620-726/+981
| | | | | | | | | | Update all test certs and keys to use future proof crypto settings: * 3072 bit RSA keys * SHA-256 signature Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit e6dac0077996b1e1f886f036d6f2606237fa4c85)