File tree Expand file tree Collapse file tree 5 files changed +32
-5
lines changed
Expand file tree Collapse file tree 5 files changed +32
-5
lines changed Original file line number Diff line number Diff line change 5959 toxenv : py
6060 tox_extra_args : " -n 4"
6161 test_mypyc : true
62+ - name : Test suite with py314t-ubuntu, mypyc-compiled
63+ python : ' 3.14t'
64+ os : ubuntu-24.04-arm
65+ toxenv : py
66+ tox_extra_args : " -n 4"
67+ test_mypyc : true
6268 - name : Test suite with py314-windows-64
6369 python : ' 3.14'
6470 os : windows-latest
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- from lxml import etree # type: ignore[import-untyped]
29+ if sys .version_info >= (3 , 14 ) and bool (sysconfig .get_config_var ("Py_GIL_DISABLED" )):
30+ # lxml doesn't support free-threading yet
31+ LXML_INSTALLED = False
32+ else :
33+ from lxml import etree # type: ignore[import-untyped]
2934
30- LXML_INSTALLED = True
35+ LXML_INSTALLED = True
3136except ImportError :
3237 LXML_INSTALLED = False
3338
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- import lxml # type: ignore[import-untyped]
31+ if sys .version_info >= (3 , 14 ) and bool (sysconfig .get_config_var ("Py_GIL_DISABLED" )):
32+ # lxml doesn't support free-threading yet
33+ lxml = None
34+ else :
35+ import lxml # type: ignore[import-untyped]
3136except ImportError :
3237 lxml = None
3338
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- import lxml # type: ignore[import-untyped]
24+ if sys .version_info >= (3 , 14 ) and bool (sysconfig .get_config_var ("Py_GIL_DISABLED" )):
25+ # lxml doesn't support free-threading yet
26+ lxml = None
27+ else :
28+ import lxml # type: ignore[import-untyped]
2429except ImportError :
2530 lxml = None
2631
Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5+ import sys
6+ import sysconfig
57import textwrap
68
79from mypy .report import CoberturaPackage , get_line_rate
810from mypy .test .helpers import Suite , assert_equal
911
1012try :
11- import lxml # type: ignore[import-untyped]
13+ if sys .version_info >= (3 , 14 ) and bool (sysconfig .get_config_var ("Py_GIL_DISABLED" )):
14+ # lxml doesn't support free-threading yet
15+ lxml = None
16+ else :
17+ import lxml # type: ignore[import-untyped]
1218except ImportError :
1319 lxml = None
1420
You can’t perform that action at this time.
0 commit comments