-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[3.13] gh-137463: Update validate_abstract_methods in test_collections.py (GH-137464) #137516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
guilhermeleobas
wants to merge
2,625
commits into
python:main
from
guilhermeleobas:backport-5be8723-3.13
Closed
[3.13] gh-137463: Update validate_abstract_methods in test_collections.py (GH-137464) #137516
guilhermeleobas
wants to merge
2,625
commits into
python:main
from
guilhermeleobas:backport-5be8723-3.13
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…pythonGH-135210) (cherry picked from commit 6ef06fa)
…f comment in the doc. (pythonGH-135181) (python#135211) feat(docs): type fix - apply pep8 by using docstring instead of comment in the doc. (pythonGH-135181) Giving the right example incitates the tutorial readers to do the same in the future. (cherry picked from commit 3431828) Co-authored-by: Jean-Louis GUENEGO <jlguenego@gmail.com>
…asm_tr…ampoline.S (pythonGH-128606) (pythonGH-135077)" (pythonGH-135175) (pythonGH-135203) [3.14] pythongh-128605: Revert "Add branch protections for x86_64 in asm_tr…ampoline.S (pythonGH-128606) (pythonGH-135077)" (pythonGH-135175) This reverts commit 899cca6, which broke buildbots. (cherry picked from commit b477e21) Co-authored-by: Petr Viktorin <encukou@gmail.com>
…onGH-131640) (pythonGH-135221) Docs: Update `PyExc_*` tables in the c-api documentation (pythonGH-131640) Add `PyExc_BaseExceptionGroup` and `PyExc_EncodingWarning` (cherry picked from commit f00512d) Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
…ser.get_address (pythonGH-134194) (python#135192) pythongh-134155: fix AttributeError in email._header_value_parser.get_address (pythonGH-134194) Append the defect to defects instead of to the parse tree. (cherry picked from commit d9cad07) Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…xxlimited (pythonGH-135174) (pythonGH-135214) pythongh-134160: Use PyModuleDef.m_free in the example module xxlimited (pythonGH-135174) (cherry picked from commit 1adca08) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
… when sorting RFC 2231 continuations (pythonGH-134687) (python#135248) pythongh-134151 Fix `TypeError` in `email.utils.decode_params` when sorting RFC 2231 continuations (pythonGH-134687) - Fix sorting logic in `email.utils.decode_params` to handle None values. - Update tests for RFC 2231 continuation sorting. (cherry picked from commit bcb6b45) Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
…d by `s[i]` (pythonGH-134977) (python#135259) pythongh-134976: document the exception type that can be raised by `s[i]` (pythonGH-134977) (cherry picked from commit 158e516) Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
…n#135271) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
…H-135275) (python#135281) pythongh-135263: Fix typo in token.NAME documentation (pythonGH-135275) (cherry picked from commit 8d17a41) Co-authored-by: Vladyslav Lazoryk <80263725+lazorikv@users.noreply.github.com>
…GH-135277) (python#135279) * pythongh-135276: Refresh `zipfile.Path` from zipp 3.23 (pythonGH-135277) Apply changes from zipp 3.23 (cherry picked from commit 8d6eb0c) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> * Removed features slated for Python 3.15 only. --------- Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
…5286) Use f-strings in csv docs example (pythonGH-135245) (cherry picked from commit 2677dd0) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
…nGH-134048) (python#135334) [3.13] pythongh-133157: fix UBSan failures in `Parser/pegen.c` (pythonGH-134048) (cherry picked from commit 754e7c9)
…_US.UTF-8' (pythonGH-135347) (pythonGH-135350) (cherry picked from commit 0f866cb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…poline.S (python#128606) (python#135353) Apply Intel Control-flow Technology for x86-64 on asm_trampoline.S. Required for mitigation against return-oriented programming (ROP) and Call or Jump Oriented Programming (COP/JOP) attacks. Manual application is required for the assembly files. See also: https://sourceware.org/annobin/annobin.html/Test-cf-protection.html
…G argument > 0x7fffffff in pickle (pythonGH-135322) (pythonGH-135383) (cherry picked from commit 2b8b477) Co-authored-by: Justin Applegate <70449145+Legoclones@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…ython#134535) Co-authored-by: Kattni <kattni@kattni.com>
…ldata`` (pythonGH-132887) (python#135391) (cherry picked from commit c9f3f5b) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
…ey are not suitable for 3.13 (python#135390)
…unMain handle SystemExit (pythonGH-135337) (python#135395) pythongh-133264: Correct documentation of how Py_Main and Py_RunMain handle SystemExit (pythonGH-135337) (cherry picked from commit b706ff0) Co-authored-by: Malcolm Smith <smith@chaquo.com>
…ythonGH-116532) (python#135417) Fix presentation of dataclasses' `unsafe_hash` default value (pythonGH-116532) (cherry picked from commit 71f5faf) Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
…) (python#135458) Co-authored-by: Blaise Pabon <blaise@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…4523) (python#135460) pythongh-106318: Add example for `str.endswith()` (pythonGH-134523) (cherry picked from commit eed827e) Co-authored-by: Blaise Pabon <blaise@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…script. (pythonGH-135461) (cherry picked from commit afc5ab6) Co-authored-by: Steve Dower <steve.dower@python.org>
…134525) (python#135477) Co-authored-by: Blaise Pabon <blaise@gmail.com>
…135431) (pythonGH-135441) (cherry picked from commit f273fd7)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The test for missing abstract methods in
validate_abstract_methods
incorrectly attempted to instantiate the generated classC
with an argument (C(name)
), which always raises aTypeError: C() takes no arguments
. Although the test originally passes, it passes for the wrong reason.This change makes the test correctly validate the enforcement of abstract methods in ABCs.
📚 Documentation preview 📚: https://cpython-previews--137516.org.readthedocs.build/