File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 88import os
99import shutil
1010import sys
11+ import sysconfig
1112import time
1213import tokenize
1314from abc import ABCMeta , abstractmethod
2526from mypy .version import __version__
2627
2728try :
28- if sys .version_info >= (3 , 14 ) and not sys . _is_gil_enabled ( ):
29+ if sys .version_info >= (3 , 14 ) and bool ( sysconfig . get_config_var ( "Py_GIL_DISABLED" ) ):
2930 # lxml doesn't support free-threading yet
3031 LXML_INSTALLED = False
3132 else :
Original file line number Diff line number Diff line change 55import os
66import re
77import sys
8+ import sysconfig
89import tempfile
910from pathlib import Path
1011
2728from mypy .test .update_data import update_testcase_output
2829
2930try :
30- if sys .version_info >= (3 , 14 ) and not sys . _is_gil_enabled ( ):
31+ if sys .version_info >= (3 , 14 ) and bool ( sysconfig . get_config_var ( "Py_GIL_DISABLED" ) ):
3132 # lxml doesn't support free-threading yet
3233 lxml = None
3334 else :
Original file line number Diff line number Diff line change 1010import re
1111import subprocess
1212import sys
13+ import sysconfig
1314
1415from mypy .test .config import PREFIX , test_temp_dir
1516from mypy .test .data import DataDrivenTestCase , DataSuite
2021)
2122
2223try :
23- if sys .version_info >= (3 , 14 ) and not sys . _is_gil_enabled ( ):
24+ if sys .version_info >= (3 , 14 ) and bool ( sysconfig . get_config_var ( "Py_GIL_DISABLED" ) ):
2425 # lxml doesn't support free-threading yet
2526 lxml = None
2627 else :
Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import sys
6+ import sysconfig
67import textwrap
78
89from mypy .report import CoberturaPackage , get_line_rate
910from mypy .test .helpers import Suite , assert_equal
1011
1112try :
12- if sys .version_info >= (3 , 14 ) and not sys . _is_gil_enabled ( ):
13+ if sys .version_info >= (3 , 14 ) and bool ( sysconfig . get_config_var ( "Py_GIL_DISABLED" ) ):
1314 # lxml doesn't support free-threading yet
1415 lxml = None
1516 else :
You can’t perform that action at this time.
0 commit comments