Skip to content

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

@vstinner 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).
@StanFromIreland

Copy link
Copy Markdown
Member

Hugo already has a PR for this: #158668

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