Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 07145dd

Browse filesBrowse files
[3.13] gh-117953: Skip test_interpreters properly without GIL (gh-120707)
(cherry picked from commit 1035fe0, AKA gh-120689) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
1 parent 1ce5984 commit 07145dd
Copy full SHA for 07145dd

File tree

Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import os
22
from test.support import load_package_tests, Py_GIL_DISABLED
3+
import unittest
34

4-
if not Py_GIL_DISABLED:
5-
def load_tests(*args):
6-
return load_package_tests(os.path.dirname(__file__), *args)
5+
if Py_GIL_DISABLED:
6+
raise unittest.SkipTest("GIL disabled")
7+
8+
def load_tests(*args):
9+
return load_package_tests(os.path.dirname(__file__), *args)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.