aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* pythongh-100221: Fix creating dirs in `make sharedinstall`gentoo-3.12.0a4Michał Górny2023-01-112-14/+12
| | | | | | | | | | | | | | | Fix creating install directories in `make sharedinstall` if they exist already outside `DESTDIR`. The previous make rules assumed that the directories would be created via a dependency on a rule for `$(DESTSHARED)` that did not fire if the directory did exist outside `$(DESTDIR)`. While technically `$(DESTDIR)` could be prepended to the rule name, moving the rules for creating directories straight into the `sharedinstall` rule seems to fit the common practices better. Since the rule explicitly checks whether the individual directories exist anyway, there seems to be no reason to rely on make determining that implicitly as well.
* pythongh-100220: Fix error handling in make rulesMichał Górny2023-01-112-19/+41
| | | | | | | | | | | | | | | | | | Use `set -e` before compound shell commands in order to ensure that make targets fail correctly when at least one of the subcommands fail. This is necessary since make considers a target failed only if one of the shell invocations returns with unsuccessful exit status. If a shell script does not exit explicitly, the shell uses the exit status of the *last* executed command. This means that when multiple commands are executed (e.g. through a `for` loop), the exit statuses of prior command invocations are ignored. This can be either resolved by adding an explicit `|| exit 1` to every command that is expected to succeed, or by running the whole script with `set -e`. The latter was used here as it the rules seem to be written with the assumption that individual commands were supposed to cause the make rules to fail.
* gh-98636: Fix detecting gdbm_compat for _dbm moduleMichał Górny2023-01-114-2/+9
| | | | | | | Fix the gdbm_compat library detection logic to actually check for -lgdbm_compat independently of the ndbm detection. This fixes the build failure with `--with-dbmliborder=gdbm`, and implicit fallback to ndbm with the default value.
* Skip tests which interact with invalid UTF-8 filesSam James2023-01-1110-0/+15
| | | | | | | | | These tests fail on filesystems which disallow non-UTF8, like ZFS with 'utf8only' on. Bug: https://bugs.python.org/issue37584 Bug: https://github.com/python/cpython/issues/81765 Signed-off-by: Sam James <sam@gentoo.org>
* Workaround clang+musl build failureMichał Górny2023-01-111-9/+11
| | | | | | | | | | | The current configure code detects musl and sets an appropriate suffix correctly but afterwards verifies that the detection result matches whatever --print-multiarch prints. Unfortunately, the current Clang releases incorrectly report linux-gnu on musl, causing the safety check to fail. Until upstreams sort that out, just nuke the multiarch check on musl target. Bug: https://bugs.gentoo.org/862888
* Skip sched/priority testsSam James2023-01-111-0/+2
| | | | | | | | These tests try to change the priority of the running process, but if e.g. PORTAGE_NICENESS=19, you can't spawn a process with lower (or higher!) niceness, as there's nowhere to go. Ditto priorities. Signed-off-by: Sam James <sam@gentoo.org>
* ssl: Hard-disable SSLv3 to avoid automagic depsMichał Górny2023-01-111-0/+4
| | | | Bug: https://bugs.gentoo.org/767886
* Skip RDS socket tests that hang frequentlyMichał Górny2023-01-111-0/+1
|
* Blacklist test_pickletools from __all__ test as it imports numpyMichał Górny2023-01-111-0/+2
| | | | | The test imports numpy, bringing its warnings along with it and causing the test to fail.
* Python 3.12.0a4v3.12.0a4Thomas Wouters2023-01-10114-263/+1172
|
* GH-100117: Make `co_lines` more efficient (GH-100447)Brandt Bucher2023-01-104-38/+26
|
* gh-100916: Convert argument to appropriate type (GH-100917)Yao-Ching Huang2023-01-101-1/+1
|
* Fix typos in Doc folder (#100880)Semen Zhydenko2023-01-103-3/+3
|
* gh-100180: Update macOS installer to OpenSSL 1.1.1s (GH-100908)Ned Deily2023-01-103-21/+4
|
* gh-100893: update bpo reference in Mac README (GH-100905)Ned Deily2023-01-091-3/+3
|
* GH-98831: Refactor instr format code and change to enum (#100895)Guido van Rossum2023-01-092-219/+222
|
* gh-100180: Update Windows installer to OpenSSL 1.1.1s (GH-100901)Steve Dower2023-01-093-4/+5
|
* bpo-28356: Document os.rename() behavior on Windows for differing volumes ↵Ryan Ozawa2023-01-091-0/+2
| | | | (GH-27376)
* GH-100126: Skip incomplete frames in more places (GH-100613)Brandt Bucher2023-01-0912-46/+62
|
* gh-100882: Improve `test_pickling` case in `test_ast.py` (#100883)Nikita Sobolev2023-01-091-12/+5
|
* gh-99191: Use correct check for MSVC C++ version support in _wmimodule.cpp ↵C.A.M. Gerlach2023-01-092-3/+5
| | | | (GH-100381)
* gh-100873: Fix "‘lo’ may be used uninitialized in this function" warning ↵Nikita Sobolev2023-01-091-1/+1
| | | | in `mathmodule.c` (#100881)
* GH-81061: Fix refcount issue when returning `None` from a `ctypes.py_object` ↵dgelessus2023-01-093-8/+24
| | | | callback (#13364)
* fix up mock tests coverage (#100874)Chris Withers2023-01-091-8/+4
|
* gh-100764: add `pycore_frame.h` to PYTHON_HEADERS and Windows build ↵Carl Meyer2023-01-092-0/+2
| | | | files(#100765)
* GH-100813: Add `socket.IP_PKTINFO` constant (#10294)dsentinel2023-01-093-0/+5
|
* Update copyright year in README (GH-100863)Ned Deily2023-01-081-1/+1
| | | Co-authored-by: HARSHA VARDHAN <75431678+Thunder-007@users.noreply.github.com>
* gh-87447: Fix walrus comprehension rebind checking (#100581)Nikita Sobolev2023-01-084-3/+92
| | | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* Update additional copyright years to 2023. (GH-100859)Ned Deily2023-01-082-4/+4
|
* GH-100805: Support numpy.array() in random.choice(). (GH-100830)Raymond Hettinger2023-01-083-1/+21
|
* gh-100833: Remove 'volatile' qualifiers in fsum algorithm (#100845)Mark Dickinson2023-01-082-22/+23
| | | | | | | This PR removes the `volatile` qualifier on various intermediate quantities in the `math.fsum` implementation, and updates the notes preceding the algorithm accordingly (as well as fixing some of the exsting notes). See the linked issue #100833 for discussion.
* GH-100485: Tweaks to sumprod() (GH-100857)Raymond Hettinger2023-01-083-25/+41
|
* Update copyright years to 2023. (gh-100848)Benjamin Peterson2023-01-089-10/+10
|
* GH-90829: Fix empty iterable error message in min/max (#31181)Nnarol2023-01-082-3/+11
|
* gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap ↵Nikita Sobolev2023-01-082-40/+28
| | | | | | | memory (GH-24061)" (#100745) * gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)" This reverts commit 7c83eaa536d2f436ae46211ca48692f576c732f0.
* gh-100783: fix os.path.join documentation (#100811)Shantanu2023-01-081-11/+12
| | | | | | - Use "drive", not "drive letter", because of UNC paths - Previous components are not thrown away from relative drive letters - Use "segment" instead of "component" for consistency with pathlib - Other miscellaneous improvements
* gh-91851: Micro optimizations for arithmetic between Fractions (#25518)Sergey B Kirpichev2023-01-082-10/+13
| | | | | | | | Adapted from https://github.com/python/cpython/pull/24779/commits/046c84e8f9 This makes arithmetic between Fractions with small components just as fast as before python/cpython#24779, at some expense of mixed arithmetic (e.g. Fraction + int).
* gh-100824: Fix typo in the documentation of ↵busywhitespace2023-01-081-2/+2
| | | | unittest.TestLoader.testNamePatterns (#100825)
* gh-100776: Fix misleading default value in help(input) (#100788)Shantanu2023-01-083-4/+5
|
* GH-100485: Convert from Fast2Sum to 2Sum (GH-100836)Raymond Hettinger2023-01-071-13/+16
|
* gh-100815: Normalize `types` module usage in `copy` module (#100816)Nikita Sobolev2023-01-071-9/+7
|
* gh-100792: Make `email.message.Message.__contains__` twice as fast (#100793)Nikita Sobolev2023-01-072-1/+6
|
* GH-100485: Add math.sumprod() (GH-100677)Raymond Hettinger2023-01-076-10/+548
|
* gh-100673: Removed erroneous note in the get_type_hints docs (#100701)FrozenBob2023-01-071-4/+0
| | | | | Removed erroneous note in the get_type_hints docs typing.get_type_hints still includes base class type hints.
* gh-88696: clean up dead argument to compiler_make_closure (GH-100806)Carl Meyer2023-01-071-23/+7
|
* gh-96127: Fix `inspect.signature` call on mocks (#96335)Nikita Sobolev2023-01-073-1/+30
|
* gh-100690: [mock] hide `ATTRIB_DENY_LIST` and make it immutable (#100819)Nikita Sobolev2023-01-071-2/+6
|
* Add barneygale to CODEOWNERS for pathlib (#100808)Barney Gale2023-01-061-0/+3
|
* gh-100690: Raise an AttributeError when the assert_ prefix is forgotten when ↵Christian Klein2023-01-063-4/+41
| | | | | | | | using Mock (#100691) Mock objects which are not unsafe will now raise an AttributeError when accessing an attribute that matches the name of an assertion but without the prefix `assert_`, e.g. accessing `called_once` instead of `assert_called_once`. This is in addition to this already happening for accessing attributes with prefixes assert, assret, asert, aseert, and assrt.
* GH-98831: Add some tests for generate_cases.py (#100763)Guido van Rossum2023-01-061-0/+310
| | | | | | - This doesn't cover everything (far from it) but it's a start. - This uses pytest, which isn't ideal, but was quickest to get started. Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>