Skip to content

Commit 0032928

Browse files
committed
tests: Fix free-threading check
1 parent aae8488 commit 0032928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test_actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
print(f"::error title=Test Failure::The Python implementation does not match. Got {implementation}, expected {expected_implementation}.")
3535
sys.exit(1)
3636
threading = "free-threading" if sysconfig.get_config_var("Py_GIL_DISABLED") else "GIL"
37-
expected_threading = "free-threading" if "${{ matrix.python-version }}".endswith("t") else "GIL"
37+
expected_threading = "free-threading" if "t" in "${{ matrix.python-version }}" else "GIL"
3838
if threading != expected_threading:
3939
print(f"::error title=Test Failure::The Python threading does not match. Got {threading}, expected {expected_threading}.")
4040
sys.exit(1)

0 commit comments

Comments
 (0)