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

Fix @reap_threads usage in test_free_threading.test_json by vstinner · Pull Request #158937 · python/cpython · GitHub

Repository navigation

Fix @reap_threads usage in test_free_threading.test_json - #158937

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:test_ft_json
Open

vstinner wants to merge 1 commit into
python:mainfrom
vstinner:test_ft_json

Conversation

vstinner commented Oct 6, 2026

Copy link
Copy Markdown
Member

Use the decorator on test methods, not on the whole class.

Previously, test_json ran no tests:

$ ./python -m test -v test_free_threading.test_json -v
...
Ran 0 tests in 0.000s

NO TESTS RAN

Add also a check in @reap_threads to detect misuse (on a class).

Use the decorator on test methods, not on the whole class.

Previously, test_json ran no tests:

    $ ./python -m test -v test_free_threading.test_json -v
    ...
    Ran 0 tests in 0.000s

    NO TESTS RAN

Add also a check in @reap_threads to detect misuse (on a class).

Copy link
Copy Markdown
Member

Hugo already has a PR for this: #158668

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

awaiting core review needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip issue skip news tests Tests in the Lib/test dir topic-free-threading

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL