main
Name already in use
Commits on Nov 21, 2022
-
gh-99659: Use correct exceptions in sqlite3 bigmem tests (#99660)
The tests in question were added in 0eec627 by Serhiy. Apparently, sqlite3 changed exceptions raised in those cases in the mean time but the tests never ran because they require a high `-M` setting in the test runner.
Commits on Oct 4, 2022
-
gh-97008: Add a Python implementation of AttributeError and NameError…
… suggestions (#97022) Relevant tests moved from test_exceptions to test_traceback to be able to compare both implementations. Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
Commits on Jul 5, 2022
Commits on May 3, 2022
-
gh-89452: Prefer gdbm-compat over ndbm (#92208)
This makes macOS gdbm provided by Homebrew not segfault through correct selection of the linked library (-lgdbm_compat) *AND* the correct ndbm-style header (gdbm-ndbm.h instead of the invalid ndbm.h).
Commits on Nov 4, 2021
Commits on Sep 29, 2021
-
-
[typo] Fix threading.Barrier comment that used confusing punctuation (G…
…H-28623) Removed extra comma in comment that indicates state of a `Barrier` as it was confusing and breaking the flow while reading. Co-authored-by: Priyank <5903604+cpriyank@users.noreply.github.com>
Commits on Sep 2, 2021
Commits on Aug 19, 2021
Commits on Aug 18, 2021
-
bpo-44852: Support filtering over warnings without a set message (GH-…
…27793) Additional improvements: - messages which were compiled regular expressions aren't unpacked back into strings for unmatched warnings; - removed unnecessary "if tokens:" check (there's one before the for loop); - took `endswith` calculation out of the for loop.
Commits on Aug 16, 2021
Commits on Aug 10, 2021
Commits on Aug 6, 2021
-
bpo-44756: [docs] revert automated virtual environment creation on `m…
…ake html` (GH-27635) It turned out to be disruptive for downstream distributors.
Commits on Jul 22, 2021
-
bpo-44708: Only re-run test methods that match names of previously fa…
…iling test methods (GH-27287) * Move to a static argparse.Namespace subclass * Roughly annotate runtest.py * Refactor libregrtest to use lossless test result objects * Only re-run test methods that match names of previously failing test methods * Adopt tests to cover test method name matching Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Commits on Jul 17, 2021
Commits on Jul 15, 2021
-
bpo-44647: Fix test_httpservers failing on Unicode characters in os.e…
-
bpo-42073: allow classmethod to wrap other classmethod-like descripto…
…rs (#27115) Patch by Erik Welch. bpo-19072 (#8405) allows `classmethod` to wrap other descriptors, but this does not work when the wrapped descriptor mimics classmethod. The current PR fixes this. In Python 3.8 and before, one could create a callable descriptor such that this works as expected (see Lib/test/test_decorators.py for examples): ```python class A: @myclassmethod def f1(cls): return cls @classmethod @myclassmethod def f2(cls): return cls ``` In Python 3.8 and before, `A.f2()` return `A`. Currently in Python 3.9, it returns `type(A)`. This PR make `A.f2()` return `A` again. As of #8405, classmethod calls `obj.__get__(type)` if `obj` has `__get__`. This allows one to chain `@classmethod` and `@property` together. When using classmethod-like descriptors, it's the second argument to `__get__`--the owner or the type--that is important, but this argument is currently missing. Since it is None, the "owner" argument is assumed to be the type of the first argument, which, in this case, is wrong (we want `A`, not `type(A)`). This PR updates classmethod to call `obj.__get__(type, type)` if `obj` has `__get__`. Co-authored-by: Erik Welch <erik.n.welch@gmail.com>