FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-75876: Use functools.wraps() in test.support test decorators (GH-155262) by serhiy-storchaka · Pull Request #155311 · python/cpython · GitHub

Repository navigation

[3.13] gh-75876: Use functools.wraps() in test.support test decorators (GH-155262) - #155311

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-c3aefdb-3.13
Aug 7, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-c3aefdb-3.13

Conversation

Copy link
Copy Markdown
Member

Manual backport of GH-155262: no_rerun() does not exist on 3.13, so only bigmemtest() and bigaddrspacetest() are changed.

bigmemtest() returns a wrapper whose __name__ is "wrapper", so a decorator applied on top of it cannot identify the test. test.support.isolation.runInSubprocess(), which is on this branch, looks the test up by name in the subprocess, so stacking it on @bigmemtest fails with AttributeError: type object 'X' has no attribute 'wrapper'. No test in the suite stacks them yet, so nothing currently fails.

(cherry picked from commit c3aefdb)

…pythonGH-155262)

bigmemtest() and bigaddrspacetest() returned a wrapper named "wrapper", so
a decorator applied on top of them could not identify the test.
(cherry picked from commit c3aefdb)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
bedevere-app Bot mentioned this pull request Aug 7, 2026
serhiy-storchaka added the tests Tests in the Lib/test dir label Aug 7, 2026
serhiy-storchaka merged commit 8582fe1 into python:3.13 Aug 7, 2026
43 checks passed
serhiy-storchaka deleted the backport-c3aefdb-3.13 branch August 7, 2026 06:30
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL