8000 gh-120659: Skip `test_freethreading` with GIL by nineteendo · Pull Request #120660 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-120659: Skip test_freethreading with GIL #120660

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

Merged
merged 6 commits into from
Jun 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Raise at module level
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
nineteendo and vstinner committed Jun 18, 2024
commit 465759aa980c03bd14f24a3f31e9127d0315eaa9
6 changes: 4 additions & 2 deletions Lib/test/test_free_threading/__init__.py
Original file line 6359 number Diff line number Diff line change
@@ -1,9 +1,11 @@
import os
import unittest

from test import support
from unittest import skipUnless


@skipUnless(support.Py_GIL_DISABLED, "GIL enabled")
if not support.Py_GIL_DISABLED:
raise unittest.SkipTest("GIL enabled")

def load_tests(*args):
return support.load_package_tests(os.path.dirname(__file__), *args)
Loading
0