summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-37467: Fix PyErr_Display() for bytes filename (GH-14504)Victor Stinner2019-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.
* bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503)Pierre Glaser2019-07-011-0/+14
|
* bpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-14506)Miro Hrončok2019-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.
* bpo-32934: Clarified meaning of 'capacity' for BufferingHandler and ↵Vinay Sajip2019-07-012-10/+12
| | | | MemoryHandler. (GH-14498)
* bpo-37221: Add PyCode_NewWithPosOnlyArgs to be used internally and set ↵Pablo Galindo2019-07-018-34/+79
| | | | | | PyCode_New as a compatibility wrapper (GH-13959) Add PyCode_NewEx to be used internally and set PyCode_New as a compatibility wrapper
* Minor updates to the macOS installer screens for 3.8.0b2 (GH-14501)Ned Deily2019-07-012-5/+16
|
* bpo-37440: Enable TLS 1.3 post-handshake auth in http.client (GH-14448)Christian Heimes2019-07-014-0/+32
| | | | | | Post-handshake authentication is required for conditional client cert authentication with TLS 1.3. https://bugs.python.org/issue37440
* bpo-37428: Don't set PHA verify flag on client side (GH-14421)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
* bpo-36168: Lowercase the word "subsequent" in get_value doc (GH-14485)Krishna Oza2019-07-011-1/+1
| | | | | Subsequent -> subsequent https://bugs.python.org/issue36168
* bpo-37199: Fix test failures when IPv6 is unavailable or disabled (#14480)Zackery Spytz2019-06-305-4/+21
|
* bpo-35621: Support running subprocesses in asyncio when loop is executed in ↵Andrew Svetlov2019-06-307-72/+378
| | | | non-main thread (GH-14344)
* bpo-29505: Add more fuzzing for re.compile, re.load and csv.reader (GH-14255)Ammar Askar2019-06-309-16/+493
| | | Add more fuzz testing for re.compile, re.load and csv.reader
* bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)tmblweed2019-06-302-3/+6
| | | | * Added documentation for textwrap.dedent behavior. * Remove an obsolete note about pre-2.5 behavior from the docstring.
* bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)Benjamin Peterson2019-06-291-2/+2
|
* Make StreamHandler.terminator more discoverable (GH-14359)Andre Delfino2019-06-291-7/+11
|
* Fix indentation in logging.handlers.setStream (GH-14358)Andre Delfino2019-06-291-2/+1
|
* bpo-37369: Fixes crash when reporting fatal error (GH-14468)Steve Dower2019-06-291-2/+3
|
* bpo-37369: Fix initialization of sys members when launched via an app ↵Steve Dower2019-06-2917-268/+401
| | | | | | | container (GH-14428) 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-19696: Moved "test_pkgimport.py" to dir "test_importlib" (GH-14303)Kyle Stanley2019-06-281-0/+0
| | | | | | | | | Also renamed the file to "test_pkg_import.py" to better follow the naming convention. Component of issue 19696. https://bugs.python.org/issue19696
* bpo-37403: Touch up venv docs (GH-14458)Brett Cannon2019-06-282-7/+20
| | | Add a versionadded for PS Core and note that `.venv` is a common virtual environment name.
* bpo-31783: Fix a race condition creating workers during shutdown (#13171)Brian Quinlan2019-06-282-2/+7
| | | | | | * bpo-31783: Fix a race condition while creating workers during interpreter shutdown * 📜🤖 Added by blurb_it.
* bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452)Victor Stinner2019-06-281-2/+1
|
* bpo-37380: subprocess: don't use _active on win (GH-14360)Ruslan Kuprieiev2019-06-283-25/+59
| | | | | | | | | | | | | | | | | | | As noted by @eryksun in [1] and [2], using _cleanup and _active(in __del__) is not necessary on Windows, since: > Unlike Unix, a process in Windows doesn't have to be waited on by > its parent to avoid a zombie. Keeping the handle open will actually > create a zombie until the next _cleanup() call, which may be never > if Popen() isn't called again. This patch simply defines `subprocess._active` as `None`, for which we already have the proper logic in place in `subprocess.Popen.__del__`, that prevents it from trying to append the process to the `_active`. This patch also defines `subprocess._cleanup` as a noop for Windows. [1] https://bugs.python.org/issue37380#msg346333 [2] https://bugs.python.org/issue36067#msg336262 Signed-off-by: Ruslan Kuprieiev <ruslan@iterative.ai>
* bpo-37412: pythoninfo: add Windows long paths (GH-14434)Victor Stinner2019-06-281-0/+24
| | | | | | On Windows, test.pythoninfo now checks if support for long paths is enabled using ntdll.RtlAreLongPathsEnabled() function. Co-Authored-By: Eryk Sun <eryksun@gmail.com>
* bpo-37412: Fix os.getcwd() for long path on Windows (GH-14424)Victor Stinner2019-06-282-1/+56
| | | | * Fix test for integer overflow. * Add an unit test.
* bpo-20443: Fix calculate_program_full_path() warning (GH-14446)Victor Stinner2019-06-281-1/+1
| | | | Don't call _Py_isabs() with a bytes string (char*), the function expects as wide string.
* bpo-37337: Add _PyObject_VectorcallMethod() (GH-14228)Jeroen Demeyer2019-06-287-33/+105
|
* bpo-37432: Doc: Fix signature of PyObject_Del() (GH-14430)Hai Shi2019-06-281-1/+1
|
* closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436)Benjamin Peterson2019-06-287-32/+22
|
* bpo-37390: Add audit event table to documentations (GH-14406)Steve Dower2019-06-2734-113/+266
| | | Also updates some (unreleased) event names to be consistent with the others.
* bpo-30345: travis: use -Og with --with-pydebug (GH-14423)Inada Naoki2019-06-271-1/+2
|
* closes bpo-37420: Handle errors during iteration in os.sched_setaffinity. ↵Brandt Bucher2019-06-273-0/+6
| | | | (GH-14414)
* Replace deprecation warning with RuntimeError (GH-14397)Andrew Svetlov2019-06-272-4/+8
|
* bpo-33926: enable GDB tests on Travis CI (GH-14395)Jeroen Demeyer2019-06-271-2/+2
|
* bpo-35389: platform.platform() calls libc_ver() without executable (GH-14418)Victor Stinner2019-06-271-1/+1
| | | | | | | When libc_ver() is called with an executable, the os.confstr('CS_GNU_LIBC_VERSION') fast-path cannot be taken. Modify platform.platform() to call libc_ver() without executable, instead of calling libc_ver(sys.executable), since sys.executable is already the default value.
* bpo-37421: Fix test_shutil: don't leak temporary files (GH-14416)Victor Stinner2019-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.
* bpo-37376: pprint support for SimpleNamespace (GH-14318)Carl Bordum Hansen2019-06-266-0/+98
| | | https://bugs.python.org/issue37376
* bpo-37419: Fix possible segfaults when passing large sequences to ↵Zackery Spytz2019-06-261-1/+1
| | | | | os.posix_spawn() (GH-14409) Use Py_ssize_t instead of int for i.
* bpo-29412: Fix indexError when parsing a header value ending unexpectedly ↵Abhilash Raj2019-06-263-0/+22
| | | | | | | (GH-14387) * 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.
* bpo-37417: Fix error handling in bytearray.extend. (GH-14407)Brandt Bucher2019-06-263-0/+11
|
* bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394)Victor Stinner2019-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.
* bpo-37163: Make the obj argument of dataclasses.replace() a positional-only. ↵Serhiy Storchaka2019-06-263-2/+3
| | | | (GH-14390)
* bpo-37414: Remove sys.callstats() (GH-14398)Victor Stinner2019-06-264-77/+9
| | | | | Remove the undocumented sys.callstats() function. Since Python 3.7, it was deprecated and always returned None. It required a special build option CALL_PROFILE which was already removed in Python 3.7.
* Improve Windows commands in tutorial (GH-14379)Steve Dower2019-06-262-12/+10
|
* bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396)Victor Stinner2019-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.
* bpo-37406: sqlite3 raises TypeError for wrong operation type (GH-14386)Victor Stinner2019-06-266-16/+11
| | | | | The sqlite3 module now raises TypeError, rather than ValueError, if operation argument type is not str: execute(), executemany() and calling a connection.
* bpo-37388: Add PyUnicode_Decode(str, 0) fast-path (GH-14385)Victor Stinner2019-06-251-0/+4
| | | Add a fast-path to PyUnicode_Decode() for size equals to 0.
* bpo-37388: Development mode check encoding and errors (GH-14341)Victor Stinner2019-06-2510-6/+315
| | | | | | | | | In development mode and in debug build, encoding and errors arguments are now checked on string encoding and decoding operations. Examples: open(), str.encode() and bytes.decode(). By default, for best performances, the errors argument is only checked at the first encoding/decoding error, and the encoding argument is sometimes ignored for empty strings.
* bpo-37244: Fix test_multiprocessing.test_resource_tracker() (GH-14288)Pierre Glaser2019-06-251-6/+15
| | | Increase robustness of test_resource_tracker(): retry for 60 seconds.
* bpo-36888, test_multiprocessing: Increase test_parent_process timeout (GH-14286)Pierre Glaser2019-06-251-3/+3
|