Skip to content

Commit

Permalink
Skip abi3 tests when freethreading Python build is used (#637)
Browse files Browse the repository at this point in the history
Skip the tests using abi3 extension when the freethreading build is used, as Python 3.13 freethreading does not support the limited API and its use results in a build error.

Fixes #636.
  • Loading branch information
mgorny authored Oct 11, 2024
1 parent 7bb46d7 commit 067534c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import os.path
import subprocess
import sys
import sysconfig

import pytest

Expand All @@ -22,7 +23,7 @@ def wheels_and_eggs(tmp_path_factory):
"unicode.dist",
)

if sys.platform != "win32":
if sys.platform != "win32" and sysconfig.get_config_var("Py_GIL_DISABLED") != 1:
# ABI3 extensions don't really work on Windows
test_distributions += ("abi3extension.dist",)

Expand Down

0 comments on commit 067534c

Please sign in to comment.