| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
The 'version' directive was introduced with gh-63929 in Nov 2013. It has
not been in use in the CPython code base, and the 'version' variable has
never been bumped.
|
|
|
|
|
|
| |
When wrapped, `_SSLProtocolTransport._force_close(exc)` is called just like in the unwrapped scenario `_SelectorTransport._force_close(exc)` or `_ProactorBasePipeTransport._force_close(exc)` would be called, except here the exception needs to be passed through the `SSLProtocol._abort()` method, which didn't accept an exception object.
This commit ensures that this path works, in the same way that the uvloop implementation of SSLProto passes on the exception (on which the current implementation of SSLProto is based).
|
|
|
| |
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
|
| |
|
|
|
|
|
| |
---------
Co-authored-by: Erlend E. Aasland <erlend@python.org>
|
|
|
| |
Co-authored-by: val-shkolnikov <val@nvsoft.net>
|
|
|
| |
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
|
|
|
| |
by a NOP (#113139)
|
|
|
|
| |
Hangs on installed 3.13.0a2 on macOS Catalina.
Behavior on installed 3.12.1 and 3.11.7 is unknown.
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-112942)
Change _osx_support.get_platform_osx() to make sure that the
version number in the result includes at least a major and
minor version (e.g. 14.2) even if MACOSX_DEPLOYMENT_TARGET is
set to just a major version (e.g. 14).
This matches the versions expected by pip when selecting
appropriate wheels for installation.
|
|
|
|
| |
reading all data (GH-113200)
|
|
|
|
| |
micro-ops (GH-113169)
|
| |
|
|
|
| |
Updated bundled pip to 23.3.2
|
|
|
|
|
|
|
|
| |
Add support for `os.POSIX_SPAWN_CLOSEFROM` and
`posix_spawn_file_actions_addclosefrom_np` and have the `subprocess` module use
them when available. This means `posix_spawn` can now be used in the default
`close_fds=True` situation on many platforms.
Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
|
| |
|
|
|
|
|
|
|
| |
used (#113120)
* Allow posix_spawn to inherit environment form parent environ variable.
With this change, posix_spawn call can behave similarly to execv with regards to environments when used in subprocess functions.
|
| |
|
|
|
|
|
|
|
|
|
| |
Store the test base directory as a class attribute named `base` rather than
module constants named `BASE`.
The base directory is a local file path, and therefore not ideally suited
to the pathlib ABC tests. In a future commit we'll change its value in
`test_pathlib_abc.py` such that it points to a totally fictitious path, which
will help to ensure we're not touching the local filesystem.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
PR #100161 added fancy float-style formatting for the Fraction type,
but left us in a state where basic formatting for fractions (alignment,
fill, minimum width, thousands separators) still wasn't supported.
This PR adds that support.
---------
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
(#111116)
Detect email address parsing errors and return empty tuple to
indicate the parsing error (old API). Add an optional 'strict'
parameter to getaddresses() and parseaddr() functions. Patch by
Thomas Dwyer.
Co-Authored-By: Thomas Dwyer <github@tomd.tel>
|
|
|
|
|
|
| |
On Windows, Process.terminate() no longer sets the returncode
attribute to always call WaitForSingleObject() in Process.wait().
Previously, sometimes the process was still running after
TerminateProcess() even if GetExitCodeProcess() is not STILL_ACTIVE.
|
| |
|
| |
|
|
|
|
| |
the arg_resolver. Reduce the number of parameters passed around. (#113108)
|
|
|
|
|
|
| |
It was raised in two cases:
* in the import statement when looking up __import__
* in pickling some builtin type when looking up built-ins iter, getattr, etc.
|
|
|
|
| |
(GH-113049)
|
| |
|
|
|
|
| |
(GH-111221)
|
|
|
| |
Also make test_copymode_symlink_to_symlink in test_shutil more strict.
|
|
|
|
| |
(GH-113033)
|
| |
|
|
|
|
|
| |
Order of tests matter second part makes testing file writable and
possible to remove again.
|
|
|
|
|
| |
Fix the same issue of PR #112604 on PPC64LE platform
Refactor tests to make easier to add more platfroms if needed.
|
| |
|
|
|
|
|
|
| |
---------
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
|
|
|
|
| |
(#112963)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
|
|
|
|
| |
of creating fake Instructions to represent it (#113016)
|
| |
|
|
|
| |
This affects task creation through either `asyncio.create_task()` or `TaskGroup.create_task()` -- the redundant call to `task.set_name()` is skipped. We still call `set_name()` when a task factory is involved, because the task factory call signature (unfortunately) doesn't take a `name` argument.
|
|
|
|
|
| |
Exceptions (gh-113036)
We need the TracebackException of uncaught exceptions for a single purpose: the error display. Thus we only need to pass the formatted error display between interpreters. Passing a pickled TracebackException is overkill.
|
|
|
|
|
|
| |
SelectorEventLoop (#112991)
_ensure_fd_no_transport had a KeyError in the success path
|
|
|
| |
When an exception is uncaught in Interpreter.exec_sync(), it helps to show that exception's error display if uncaught in the calling interpreter. We do so here by generating a TracebackException in the subinterpreter and passing it between interpreters using pickle.
|
|
|
| |
We track the confidence as a scaled int.
|
|
|
| |
This is one of the last pieces to get test.support.interpreters in sync with PEP 734.
|
|
|
| |
This brings the module (along with the associated extension modules) mostly in sync with PEP 734. There are only a few small things to wrap up.
|