chore: avoid importing TYPE_CHECKING (#2864)
Assisted-by: OpenCode:glm-5.1 Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
This commit is contained in:
@@ -2,7 +2,6 @@ import contextlib
|
||||
import sys
|
||||
from collections.abc import Generator
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import pytest
|
||||
import setuptools._distutils.util
|
||||
@@ -11,6 +10,8 @@ from cibuildwheel.ci import CIProvider, detect_ci_provider
|
||||
from cibuildwheel.errors import FatalError
|
||||
from cibuildwheel.platforms.windows import PythonConfiguration, setup_setuptools_cross_compile
|
||||
|
||||
TYPE_CHECKING = False
|
||||
|
||||
# monkeypatching os.name is too flaky. E.g. It works on my machine, but fails in pipeline
|
||||
if not sys.platform.startswith("win") and not TYPE_CHECKING:
|
||||
pytest.skip("Windows-only tests", allow_module_level=True)
|
||||
|
||||
Reference in New Issue
Block a user