summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-37459: importlib docs improperly reference get_resource_loader() ↵Miss Islington (bot)2019-07-041-1/+1
| | | | | | | | (GH-14568) (GH-14580) * bpo-37459: importlib docs improperly reference get_resource_loader() (cherry picked from commit b607d992e76e485f20be3bfd6b311525123f936b) Co-authored-by: aldwinaldwin <aldwinaldwin@users.noreply.github.com>
* bpo-37233: optimize method_vectorcall in case of totalargs == 0 (GH-14550)Miss Islington (bot)2019-07-031-6/+10
| | | | | (cherry picked from commit 53c214344038341ce86fcf7efa12dc33be9d5b45) Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
* [3.8] bpo-37233: use _PY_FASTCALL_SMALL_STACK in method_vectorcall (GH-13974)Inada Naoki2019-07-031-5/+13
| | | | | (cherry picked from commit 988e6aa322fb61651812fa5a61ec73316c71b041) Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
* bpo-37421: Fix test_distutils.test_build_ext() (GH-14564)Miss Islington (bot)2019-07-033-23/+36
| | | | | | | | test_distutils.test_build_ext() is now able to remove the temporary directory on Windows: don't import the newly built C extension ("xx") in the current process, but test it in a separated process. (cherry picked from commit 74c9dd57771f4f061ee83b069c8e7b37de41246b) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37421: test_concurrent_futures cleans up multiprocessing (GH-14563)Miss Islington (bot)2019-07-032-7/+24
| | | | | | | | | | test_concurrent_futures now cleans up multiprocessing to remove immediately temporary directories created by multiprocessing.util.get_temp_dir(). The test now uses setUpModule() and tearDownModule(). (cherry picked from commit 684cb47fffb7af3ac50cb077f6d2a095c9ce20b4) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37421: test_winconsoleio doesn't leak temp file anymore (GH-14562)Miss Islington (bot)2019-07-032-4/+4
| | | | | | | test_winconsoleio doesn't leak a temporary file anymore: use tempfile.TemporaryFile() to remove it when the test completes. (cherry picked from commit b71d8d67959f3b5efbdfe00066589ac0d8f98aad) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453)Miss Islington (bot)2019-07-031-1/+1
| | | | | (cherry picked from commit aeecf380660ea459d85bb5f59d76bb54f757b5be) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* bpo-37463: match_hostname requires quad-dotted IPv4 (GH-14499)Miss Islington (bot)2019-07-023-10/+32
| | | | | | | | | | | | | | | | | ssl.match_hostname() no longer accepts IPv4 addresses with additional text after the address and only quad-dotted notation without trailing whitespaces. Some inet_aton() implementations ignore whitespace and all data after whitespace, e.g. '127.0.0.1 whatever'. Short notations like '127.1' for '127.0.0.1' were already filtered out. The bug was initially found by Dominik Czarnota and reported by Paul Kehrer. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue37463 (cherry picked from commit 477b1b25768945621d466a8b3f0739297a842439) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-37421: multiprocessing tests call _run_finalizers() (GH-14527)Miss Islington (bot)2019-07-022-0/+5
| | | | | | | | multiprocessing tests now call explicitly _run_finalizers() to remove immediately temporary directories created by multiprocessing.util.get_temp_dir(). (cherry picked from commit 039fb49c185570ab7b02f13fbdc51c859cfd831e) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* Stop using Argument Clinic for dict_pop (GH-13935)Inada Naoki2019-07-022-50/+28
|
* bpo-37335, test_c_locale_coercion: Remove unnecessary code (GH-14447)Miss Islington (bot)2019-07-022-19/+6
| | | | | | | | | Python initialization now ensures that sys stream encoding names are always normalized by codecs.lookup(encoding).name. Simplify test_c_locale_coercion: it doesn't have to normalize encoding names anymore. (cherry picked from commit 61bf97e91620e020939d57a36918ab22579920ff) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
* bpo-34602: Avoid failures setting macOS stack resource limit (GH-14546)Miss Islington (bot)2019-07-024-16/+16
| | | | | | | | | | | | | | | | | | | | Under some conditions the earlier fix for bpo-18075, "Infinite recursion tests triggering a segfault on Mac OS X", now causes failures on macOS when attempting to change stack limit with resource.setrlimit resource.RLIMIT_STACK, like regrtest does when running the test suite. The reverted change had specified a non-default stack size when linking the python executable on macOS. As of macOS 10.14.4, the previous code causes a hard failure when running tests, although similar failures had been seen under some conditions under some earlier systems. Reverting the change to the interpreter stack size at link time helped for release builds but caused some tests to fail when built --with-pydebug. Try the opposite approach: continue to build the interpreter with an increased stack size on macOS and remove the failing setrlimit call in regrtest initialization. This will definitely avoid the resource.RLIMIT_STACK error and should have no, or fewer, side effects. (cherry picked from commit 5bbbc733e6cc0804f19b071944af8d4719e26ae6) Co-authored-by: Ned Deily <nad@python.org>
* Put pyexpatns.h include back. bpo-37437 (GH-14539)Miss Islington (bot)2019-07-021-0/+4
| | | | | (cherry picked from commit 2cd07920bb7d2d319999394092190f37935dc421) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-37363: Add audit events on startup for the run commands (GH-14524)Miss Islington (bot)2019-07-017-13/+190
| | | | | (cherry picked from commit e226e83d36dfc7220d836fb7a249ce18e70cb4a6) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37470: Document more clearly the error handling for QueueHandler.emit(). ↵Miss Islington (bot)2019-07-011-1/+6
| | | | | (GH-14532) (GH-14533) (cherry picked from commit 0f4e8132820947d93eccf31b9e526b81c6ffa53d)
* bpo-37469: Document usability of SimpleQueue with QueueHandler and ↵Miss Islington (bot)2019-07-011-8/+13
| | | | | QueueListener. (GH-14521) (GH-14525) (cherry picked from commit e6b64b756f940147728ea7808fb686ffcae89176)
* bpo-36763: Use PyConfig_Clear() (GH-14445)Miss Islington (bot)2019-07-014-186/+151
| | | | | | | | Stop using "static PyConfig", PyConfig must now always use dynamically allocated strings: use PyConfig_SetString(), PyConfig_SetArgv() and PyConfig_Clear(). (cherry picked from commit 67310023f299b5a2fad71fca449b46d280036690) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-36763: Add PyConfig_SetWideStringList() (GH-14444)Miss Islington (bot)2019-07-014-1/+29
| | | | | (cherry picked from commit 36242fd871d0f0977e720d4fae5700774bd8c09a) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* Remove unused imports in tests (GH-14518) (GH-14520)Victor Stinner2019-07-0153-84/+31
| | | (cherry picked from commit 8f4ef3b019ce380022018587571b0f970e668de3)
* bpo-36168: Lowercase the word "subsequent" in get_value doc (GH-14485)Miss Islington (bot)2019-07-011-1/+1
| | | | | | | | Subsequent -> subsequent https://bugs.python.org/issue36168 (cherry picked from commit 12b436e3b079fb3e3a7197c089df90a77e3bdd77) Co-authored-by: Krishna Oza <krishoza15sep@gmail.com>
* bpo-37467: Fix PyErr_Display() for bytes filename (GH-14504)Miss Islington (bot)2019-07-013-48/+80
| | | | | | | | | | | | | | | | | Fix sys.excepthook() and PyErr_Display() if a filename is a bytes string. For example, for a SyntaxError exception where the filename attribute is a bytes string. Cleanup also test_sys: * Sort imports. * Rename numruns global var to INTERN_NUMRUNS. * Add DisplayHookTest and ExceptHookTest test case classes. * Don't save/restore sys.stdout and sys.displayhook using setUp()/tearDown(): do it in each test method. * Test error case (call hook with no argument) after the success case. (cherry picked from commit f9b7457bd7f438263e0d2dd1f70589ad56a2585e) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503) (GH-14512)Miss Islington (bot)2019-07-011-0/+14
| | | | | (cherry picked from commit ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9) Co-authored-by: Pierre Glaser <pierreglaser@msn.com>
* bpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-14506)Miss Islington (bot)2019-07-013-2/+7
| | | | | | | | | | | | | | bdist_wininst depends on MBCS codec, unavailable on non-Windows, and bdist_wininst have not worked since at least Python 3.2, possibly never on Python 3. Here we document that bdist_wininst is only supported on Windows, and we mark it unsupported otherwise to skip tests. Distributors of Python 3 can now safely drop the bdist_wininst .exe files without the need to skip bdist_wininst related tests. (cherry picked from commit 72cd653c4ed7a4f8f8fb06ac364b08a97085a2b5) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* bpo-32934: Clarified meaning of 'capacity' for BufferingHandler and ↵Miss Islington (bot)2019-07-012-10/+12
| | | | | MemoryHandler. (GH-14498) (GH-14507) (cherry picked from commit 84de34e39eb9e49b2ae691c6f67df8d7da3561de)
* bpo-37221: Add PyCode_NewWithPosOnlyArgs to be used internally and set ↵Miss Islington (bot)2019-07-018-34/+79
| | | | | | | | PyCode_New as a compatibility wrapper (GH-13959) (#14505) Add PyCode_NewEx to be used internally and set PyCode_New as a compatibility wrapper (cherry picked from commit 4a2edc34a405150d0b23ecfdcb401e7cf59f4650) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.8] bpo-37428: Don't set PHA verify flag on client side (GH-14494)Christian Heimes2019-07-013-17/+61
| | | | | | | | | | | SSLContext.post_handshake_auth = True no longer sets SSL_VERIFY_POST_HANDSHAKE verify flag for client connections. Although the option is documented as ignored for clients, OpenSSL implicitly enables cert chain validation when the flag is set. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue37428 (cherry picked from commit f0f5930ac88482ef896283db5be9b8d508d077db)
* [3.8] bpo-37440: Enable TLS 1.3 post-handshake auth in http.client ↵Miss Islington (bot)2019-07-014-0/+32
| | | | | | | | | | | | | | | (GH-14448) (GH-14495) Post-handshake authentication is required for conditional client cert authentication with TLS 1.3. https://bugs.python.org/issue37440 (cherry picked from commit d1bd6e79da1ee56dc1b902d804216ffd267399db) Co-authored-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue37440
* bpo-37199: Fix test failures when IPv6 is unavailable or disabled (GH-14480)Miss Islington (bot)2019-06-305-4/+21
| | | | | (cherry picked from commit c2cda638d63b98f5cf9a8ef13e15aace2b7e3f0b) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-35621: Support running subprocesses in asyncio when loop is executed in ↵Miss Islington (bot)2019-06-307-72/+378
| | | | | | | non-main thread (GH-14344) (cherry picked from commit 0d671c04c39b52e44597491b893eb0b6c86b3d45) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-29505: Add more fuzzing for re.compile, re.load and csv.reader (GH-14255)Miss Islington (bot)2019-06-309-16/+493
| | | | | | Add more fuzz testing for re.compile, re.load and csv.reader (cherry picked from commit 5cbbbd73a6acb6f96f5d6646aa7498d3dfb1706d) Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
* bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)Miss Islington (bot)2019-06-302-3/+6
| | | | | | | * Added documentation for textwrap.dedent behavior. * Remove an obsolete note about pre-2.5 behavior from the docstring. (cherry picked from commit eb97b9211e7c99841d6cae8c63893b3525d5a401) Co-authored-by: tmblweed <tmblweed@users.noreply.github.com>
* [3.8] bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14473)Benjamin Peterson2019-06-291-2/+2
| | | | | (cherry picked from commit 95da310078a9364bae9ab3f2ad9c71e34306a70c) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-37369: Fix initialization of sys members when launched via an app ↵Steve Dower2019-06-2917-269/+402
| | | | | | container (GH-14467) sys._base_executable is now always defined on all platforms, and can be overridden through configuration. Also adds test.support.PythonSymlink to encapsulate platform-specific logic for symlinking sys.executable
* bpo-37403: Touch up venv docs (GH-14458)Miss Islington (bot)2019-06-282-7/+20
| | | | | | Add a versionadded for PS Core and note that `.venv` is a common virtual environment name. (cherry picked from commit f9f8e3ce709ceb15c8db8c8dde940daf1febf13d) Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
* bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452)Miss Islington (bot)2019-06-281-2/+1
| | | | | (cherry picked from commit 29f609ed07aa7856741ff8b8b8b050369d0faf81) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37412: Fix os.getcwd() for long path on Windows (GH-14424) (GH-14451)Miss Islington (bot)2019-06-282-1/+56
| | | | | | | * Fix test for integer overflow. * Add an unit test. (cherry picked from commit ec3e20a2d1edddb0558f9d32e2b367904ccdde88) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37432: Doc: Fix signature of PyObject_Del() (GH-14430)Miss Islington (bot)2019-06-281-1/+1
| | | | | (cherry picked from commit b4bee03087a3c70cb040e2ce569c828860ed8e87) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436)Miss Islington (bot)2019-06-287-32/+22
| | | | | (cherry picked from commit 3b03b09fc94425915c5b1225e9200a3a95bc827b) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-37390: Add audit event table to documentations (GH-14406)Miss Islington (bot)2019-06-2734-113/+266
| | | | | | Also updates some (unreleased) event names to be consistent with the others. (cherry picked from commit 44f91c388a6f4da9ed3300df32ca290b8aa104ea) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-30345: travis: use -Og with --with-pydebug (GH-14423)Miss Islington (bot)2019-06-271-1/+2
| | | | | (cherry picked from commit 21cfae107e410bf4b0ab3c142ca4449bc33290f5) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* closes bpo-37420: Handle errors during iteration in os.sched_setaffinity. ↵Miss Islington (bot)2019-06-273-0/+6
| | | | | | | (GH-14414) (cherry picked from commit 45a30af109f69a81576b87ea775863ba12d55316) Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* Replace deprecation warning with RuntimeError (GH-14397)Miss Islington (bot)2019-06-272-4/+8
| | | | | (cherry picked from commit 97d15b1ee06ce80c4dbda91fb538a89bbcb2bed9) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-33926: enable GDB tests on Travis CI (GH-14395)Miss Islington (bot)2019-06-271-2/+2
| | | | | (cherry picked from commit 667eaffb4e5d03bf8129773f79649c3befaa5b1a) Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
* bpo-37421: Fix test_shutil: don't leak temporary files (GH-14416)Miss Islington (bot)2019-06-262-2/+4
| | | | | | | | | | * Fix typo in supports_file2file_sendfile(); ensure that dst is removed * Fix test_copytree_custom_copy_function(): remove dst tree. Use support.rmtree() rather than shutil.rmtree() to remove temporary directories: support tries harder. (cherry picked from commit 4c26abd14f1b7242998eb2f7756aa375e0fe714f) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-29412: Fix indexError when parsing a header value ending unexpectedly ↵Miss Islington (bot)2019-06-263-0/+22
| | | | | | | | | (GH-14387) (GH-14411) * patched string index out of range error in get_word function of _header_value_parser.py and created tests in test__header_value_parser.py for CFWS. * Raise HeaderParseError instead of continuing when parsing a word. (cherry picked from commit 7213df7bbfd85378c6e42e1ac63144d5974bdcf6) Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
* bpo-37419: Fix possible segfaults when passing large sequences to ↵Miss Islington (bot)2019-06-261-1/+1
| | | | | | | | os.posix_spawn() (GH-14409) Use Py_ssize_t instead of int for i. (cherry picked from commit d52a83a3d471ff3c7e9ebfa1731765e5334f7c24) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-37417: Fix error handling in bytearray.extend. (GH-14407)Miss Islington (bot)2019-06-263-0/+11
| | | | | (cherry picked from commit 2a7d596f27b2342caf168a03c95ebf3b56e5dbbd) Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394)Miss Islington (bot)2019-06-262-24/+56
| | | | | | | | | | | Fix test_wsgiref.testEnviron() to no longer depend on the environment variables (don't fail if "X" variable is set). testEnviron() now overrides os.environ to get a deterministic environment. Test full TestHandler.environ content: not only a few selected variables. (cherry picked from commit 5150d327924959639215ed0a78feffc0d88258da) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* Improve Windows commands in tutorial (GH-14400)Steve Dower2019-06-261-6/+4
|
* bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396)Miss Islington (bot)2019-06-265-59/+88
| | | | | | | | | | | | The os.getcwdb() function now uses the UTF-8 encoding on Windows, rather than the ANSI code page: see PEP 529 for the rationale. The function is no longer deprecated on Windows. os.getcwd() and os.getcwdb() now detect integer overflow on memory allocations. On Unix, these functions properly report MemoryError on memory allocation failure. (cherry picked from commit 689830ee6243126798a6c519c05aa11ba73db7cd) Co-authored-by: Victor Stinner <vstinner@redhat.com>