summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-32692: Fix test_threading.test_set_and_clear() (GH-8331)Miss Islington (bot)2018-07-191-2/+3
| | | | | | | | Increase the timeout: give timeout x 4 instead of timeout x 2 to threads to wait until the Event is set, but reduce the sleep from 500 ms to 250 ms. So the test should be more reliable and faster! (cherry picked from commit 81950495ba2c36056e0ce48fd37d514816c26747) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* [3.7] bpo-34130: Fix 2 race conditions in test_signal (GH-8329)Victor Stinner2018-07-181-16/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-34130: Fix test_signal.test_socket() (GH-8326) test_signal.test_socket(): On Windows, sometimes even if the C signal handler succeed to write the signal number into the write end of the socketpair, the test fails with a BlockingIOError on the non-blocking read.recv(1) because the read end of the socketpair didn't receive the byte yet. Fix the race condition on Windows by setting the read end as blocking. (cherry picked from commit 99bb6df66a42625367c4f38e6802c8bb527baf4a) * bpo-34130: Fix test_signal.test_warn_on_full_buffer() (GH-8327) On Windows, sometimes test_signal.test_warn_on_full_buffer() fails to fill the socketpair buffer. In that case, the C signal handler succeed to write into the socket, it doesn't log the expected send error, and so the test fail. On Windows, the test now uses a timeout of 50 ms to fill the socketpair buffer to fix this race condition. Other changes: * Begin with large chunk size to fill the buffer to speed up the test. * Add error messages to assertion errors to more easily identify which assertion failed. * Don't set the read end of the socketpair as non-blocking. (cherry picked from commit 686b4b5ff219ed66714f3b811815776dafadc23b)
* Clarify ValueError's broad applicability (GH-8313) (GH-8315)Miss Islington (bot)2018-07-171-1/+1
| | | | | (cherry picked from commit feabae961707b00008c15a31352e458f4e8b3a6c) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-34068: _io__IOBase_close_impl could call _PyObject_SetAttrId with an ↵Miss Islington (bot)2018-07-173-5/+20
| | | | | | | exception set (GH-8282) (cherry picked from commit 28f07364f066792ceee93231dbb80ae8ad98b2bb) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-33967: Fix wrong use of assertRaises (GH-8306)Miss Islington (bot)2018-07-161-1/+1
| | | | | (cherry picked from commit 56d8f57b83a37b05a6f2fbc3e141bbc1ba6cb3a2) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* bpo-34123: Fix missed documentation update for dict.popitem(). (GH-8292) ↵Miss Islington (bot)2018-07-161-1/+7
| | | | (GH#8307)
* bpo-34124: Fix markup of message_from_binary_file() signature (GH-8297)Miss Islington (bot)2018-07-161-1/+1
| | | | | (cherry picked from commit c9265c1534b7e62bb9b15460d0420c0c3bb57ff9) Co-authored-by: Jon Ribbens <jribbens@gmail.com>
* bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) (GH-8296)Miss Islington (bot)2018-07-161-1/+1
| | | | | | It was added in test_functools at 445f1b3. (cherry picked from commit 9e9b2c32a34594e901b5b9a03c561a2a2bf63ece) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-33911: Fixed deprecation warning in xmlrpc.server (GH-7847) (GH-8294)Miss Islington (bot)2018-07-161-19/+3
| | | | | | Replace deprecated inspect.getfullargspec() with inspect.signature(). (cherry picked from commit 35c0809158be7feae4c4f877a08b93baea2d8291) Co-authored-by: Nicolas Noé <nicolas@niconoe.org>
* bpo-24618: Add a check in the code constructor. (GH-8283)Miss Islington (bot)2018-07-162-3/+17
| | | | | | Check that the size of the varnames tuple is enough at least for all arguments. (cherry picked from commit bd47384e07bde38a8f18b90b4cea02a505d95c75) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-34121: Fix detection of C11 atomic support on clang. (GH-8288)Miss Islington (bot)2018-07-155-13/+24
| | | | | (cherry picked from commit 15c7b2abdfb93f8902dd72474818aee2bf97fa66) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274)Miss Islington (bot)2018-07-136-0/+15
| | | | | | | | | `_PyUnicode_TransformDecimalAndSpaceToASCII()` missed trailing NUL char. It caused buffer overflow in `_Py_string_to_number_with_underscores()`. This bug is introduced in 9b6c60cb. (cherry picked from commit 16dfca4d829e45f36e71bf43f83226659ce49315) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* bpo-34108: Fix double carriage return in 2to3 on Windows (GH-8271) (#8275)Miss Islington (bot)2018-07-133-1/+3
| | | | | | | * Add test capturing failure. * Honor newlines as present in the original file. (cherry picked from commit cafaf0447b950fd4f59edd8cbde040c61ae528f8) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-4260: Document that ctypes.xFUNCTYPE are decorators (GH-7924)Miss Islington (bot)2018-07-131-1/+19
| | | | | (cherry picked from commit 379e9d639a52766f79c7a206c5096c8333d1896f) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-33723: Fix test_time.test_thread_time() (GH-8267)Miss Islington (bot)2018-07-121-4/+9
| | | | | | | | | The test failed on AMD64 Debian root 3.x buildbot because the busy loop of 100 ms only increased time.thread_time() by 19.9 ms which is smaller than 20 ms. Modify the test to tolerate a delta of at least 15 ms instead of 20 ms. (cherry picked from commit d6345def68d3a0227253da26213dadb247f786db) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-33716, test_concurrent_futures: increase timeout (GH-7828)Miss Islington (bot)2018-07-121-5/+5
| | | | | | | | Increase the timeout from 1 min to 5 min. Replace also time.time() with time.monotonic() for timeouts. (cherry picked from commit 3ad8decd76c736f393755537aeb19b5612c21761) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-34080: Fix a memory leak in the compiler. (GH-8222)Miss Islington (bot)2018-07-112-1/+3
| | | | | (cherry picked from commit 993030aac576710a46b3dd0b4864f819d4a94145) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192)Miss Islington (bot)2018-07-113-1/+37
| | | | | (cherry picked from commit 504373c59b48f1ea12132d515459022730db6047) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33648: Remove PY_WARN_ON_C_LOCALE (GH-7114)Miss Islington (bot)2018-07-115-47/+3
| | | | | | | This code does not appear to be used anywhere in the python code base. The use was removed in eb81795d7d3a8c898fa89. (cherry picked from commit b91a3a0d61596cafb1b46c98fab65fee16a8bbbb) Co-authored-by: Eitan Adler <grimreaper@users.noreply.github.com>
* bpo-34092, test_logging: increase SMTPHandlerTest timeout (GH-8245) (GH-8247)Miss Islington (bot)2018-07-111-2/+3
| | | | | | | | Change test_logging.SMTPHandlerTest timeout from 8 seconds to 1 minute. The test failed randomly on the slow x86 Gentoo Refleaks 3.7 buildbot. (cherry picked from commit 31b50b8cbfbf49d5fc17c612cf0dfaa4d0c24983) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-34083: Update dict order in Functional HOWTO (GH-8230)Miss Islington (bot)2018-07-111-11/+12
| | | | | (cherry picked from commit 5e5bbbec467a1569c914a048a94e7597528f92cf) Co-authored-by: Stig Johan Berggren <stigjb@gmail.com>
* Doc: Point to Simple statements section instead of PEP (GH-8238)Miss Islington (bot)2018-07-111-2/+2
| | | | | (cherry picked from commit 33aefad3424853ff197c23431efec89d6598b19d) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* Dataclasses: Fix example on 30.6.8, add method should receive a list rather ↵Miss Islington (bot)2018-07-111-1/+1
| | | | | | | | than an integer. (GH-8038) (GH-8237) Change example function to append rather than add lists. (cherry picked from commit da5e9476bbfbe61f7661fd22caba1b675e5b4397) Co-authored-by: Tom Faulkner <tomfaulkner@gmail.com>
* Fix documentation for input and output tutorial (GH-8231)Miss Islington (bot)2018-07-101-1/+1
| | | | | | The ValueError message ends with a period. (cherry picked from commit 9cffdbffc3b2dec18def1c3e8cfa166d01d609df) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* bpo-34009: Expand on platform support changes (GH-8022)Miss Islington (bot)2018-07-101-3/+26
| | | | | | | | | | | | Many users won't realise the implications the OpenSSL 1.0.2 minimum version requirement has when it comes to Ubuntu 14.04 and Debian 8, so expand on that in the platform support section. Also explicitly note the non-ASCII-based locale requirement for full Unicode text handling support on non-Windows systems. (cherry picked from commit 5fe7c98a54d127759cfce323fab831008c945964) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091)Miss Islington (bot)2018-07-102-3/+2
| | | | | | Contributed by Bradley Laney. (cherry picked from commit 6b490b5db40fc29588e8e6cc23bb89c4fed74ad5) Co-authored-by: Bradley Laney <bradley.laney@gmail.com>
* bpo-33967: Fix singledispatch raised IndexError when no args (GH-8184)Miss Islington (bot)2018-07-103-0/+14
| | | | | (cherry picked from commit 445f1b35ce8461268438c8a6b327ddc764287e05) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* prefix internal sqlite symbols with _pysqlite_ (GH-8215)Miss Islington (bot)2018-07-094-19/+19
| | | | | (cherry picked from commit 7762e4d3872818272800dfbd8e1d8e3a689eb8f2) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* delete some unused pysqlite forward declarations (GH-8211)Miss Islington (bot)2018-07-091-4/+0
| | | | | (cherry picked from commit d6d4432724b12efc0d280b8eb80bca0deb8d4323) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* Move Code_of_Conduct.rst to the root level. (GH-8209)Miss Islington (bot)2018-07-091-0/+0
| | | | | | | | Follow up from https://github.com/python/peps/pull/712GH-issuecomment-403591108: "people using the repo without using GitHub still ought to be reminded of the COC" - GvR (cherry picked from commit 3ed919290e0a67a1299afbdaeab4946bc479f92c) Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
* bpo-24459: Document missing env variables in python.man (GH-4142)Miss Islington (bot)2018-07-091-0/+67
| | | | | | Initial patch by Joshua Jay Herman. (cherry picked from commit 9863de0355caf23c44b708a5d68b603e135f7ae9) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* bpo-22689: Copy the result of getenv() in sys_breakpointhook(). (GH-8194)Miss Islington (bot)2018-07-091-1/+14
| | | | | (cherry picked from commit f60bf0e168255b7675a4c049250ba6b202f8e647) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)Miss Islington (bot)2018-07-096-9/+13
| | | | | | Fixed also testing the "always" warning filter. (cherry picked from commit b796e7dcdc24ff7ec53044af041254c83a8ace21) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* bpo-34067: Include a more easily understood example for nullcontext (GH-8158)Miss Islington (bot)2018-07-091-1/+13
| | | | | | Include a more easily understood example for nullcontext (cherry picked from commit c287545d62edf1a1ee65727d3c57befa8c99c13a) Co-authored-by: Daniel Porteous <danielporteous1@gmail.com>
* bpo-28626: rearrange discussion of output formatting to encourage f-strings ↵Miss Islington (bot)2018-07-091-89/+138
| | | | | | | | | | (GH-6036) The 'output formatting' section of the tutorial talks a lot about manual formatting with things like .rjust() and .zfill(), with only a passing reference to 3.6's new f-strings. This doesn't drop all of the old material, but it does rearrange the topics into a more modern order: f-strings first, discussing formatting specifiers a bit; then calling .format(); finally manual formatting with .ljust(). (cherry picked from commit ced350b1952857a9b9c68ec7e2786358bcb61050) Co-authored-by: Andrew Kuchling <amk@amk.ca>
* bpo-34066: Disabled interruption before SETUP_WITH and BEFORE_ASYNC_WITH. ↵Miss Islington (bot)2018-07-092-4/+13
| | | | | | | | | | (GH-8159) This will prevent emitting a resource warning when the execution was interrupted by Ctrl-C between calling open() and entering a 'with' block in "with open()". (cherry picked from commit 3f4d90d4d72921f16babd3f52d7df804916af224) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.7] bpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684). ↵Serhiy Storchaka2018-07-094-13/+23
| | | | | | (GH-8193) (cherry picked from commit 2a9b8babf0d09946ebebfdb2931cc0d3db5a1d3d)
* Fix margin in sentinel and mock_open (GH-8188)Miss Islington (bot)2018-07-081-21/+21
| | | | | (cherry picked from commit f85af035c5cb9a981f5e3164425f27cf73231b5f) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-34061: Document sqlite3.NotSupportedError (GH-8172)Marcin Niemira2018-07-081-0/+7
| | | | | (cherry picked from commit bc9aa813a34474e517af8999565ff6151559d42f) Co-authored-by: Marcin Niemira <marcin@niemira.net>
* bpo-31014: Fix the webbrowser module. (GH-7267)Miss Islington (bot)2018-07-083-3/+25
| | | | | | | | | webbrowser._synthesize() called webbrowser.register() with outdated signature. Co-Authored-By: John Still <john@jmsdvl.com> (cherry picked from commit 25b804a9c21c735ce322877f105ebab2539ccfc1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33888: Use CPython instead of Python in the FAQ (GH-7767)Miss Islington (bot)2018-07-071-6/+6
| | | | | | Make the change where discussing the CPython implementation of lists and dicts. (cherry picked from commit 8d41278045ee4e8bf1cadb58a7db58d70ad55237) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* closes bpo-34050: Fix link in SSL docs (GH-8173)Miss Islington (bot)2018-07-072-1/+2
| | | | | (cherry picked from commit 9c5ba097485c8c643b670acd4026f4382bc92f4b) Co-authored-by: Marcin Niemira <marcin@niemira.net>
* Make PySimpleQueueType static. (GH-8175)Miss Islington (bot)2018-07-071-2/+2
| | | | | (cherry picked from commit 9b50a7f29b761920c04d8c3435d216145da15311) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-33702: Add some missing links in production lists and do a little polish ↵Miss Islington (bot)2018-07-073-25/+25
| | | | | | | (GH-7259) (cherry picked from commit caccca78e46bf3c3b24e09b3afb1c1b08c39990c) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-33804: Document that the argument for io.TextIOBase.read() is optional ↵Miss Islington (bot)2018-07-071-1/+1
| | | | | | | (GH-7510) (cherry picked from commit b6bb77c2b8e83ba6cb845c7b512ac564276e854f) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* Fix moduleauthor/sectionauthor directives in Enum (GH-8117)Miss Islington (bot)2018-07-071-4/+4
| | | | | (cherry picked from commit 2d748389dc9c8d083f51c7d28761e088a5468c86) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* Add missing closing parentheses (GH-8144)Miss Islington (bot)2018-07-071-1/+1
| | | | | (cherry picked from commit 03dd0e794e26afb5fa998d10ae2071e2cb0bc634) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* Make various internal _testbuffer symbols static. (GH-8160)Miss Islington (bot)2018-07-071-4/+4
| | | | | (cherry picked from commit 6cfe45a5c3d41c08d09f319ea68065b10200b13f) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.7] bpo-34065: Improve the markup of logging.basicConfig() arguments ↵Dong-hee Na2018-07-072-5/+5
| | | | | | | (GH-8153). (GH-8156) (cherry picked from commit 2800dcf656229c2ca4c90b4ddbace0717c41bb9e) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* Fix typo in TypeVar docstring (GH-8142)Miss Islington (bot)2018-07-071-1/+1
| | | | | | "can be used do declare" → "can be used to declare" (cherry picked from commit 86bfed372b81b8111a56a3311d537566d5df7f61) Co-authored-by: João D. Ferreira <jotomicron@gmail.com>