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

gh-117953: Skip `test_interpreters` properly without GIL by nineteendo · Pull Request #120689 · python/cpython · GitHub

/ cpython Public
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
9 changes: 6 additions & 3 deletions Lib/test/test_interpreters/__init__.py
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import os
from test.support import load_package_tests, Py_GIL_DISABLED
import unittest

if not Py_GIL_DISABLED:
def load_tests(*args):
return load_package_tests(os.path.dirname(__file__), *args)
if Py_GIL_DISABLED:
raise unittest.SkipTest("GIL disabled")

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

Back | FazBrowse Home | New Git URL