|
18 | 18 | _get_pinned_container_images, |
19 | 19 | ) |
20 | 20 | from cibuildwheel.platforms import ALL_PLATFORM_MODULES, get_build_identifiers |
21 | | -from cibuildwheel.selector import EnableGroup |
22 | 21 | from cibuildwheel.util import resources |
23 | 22 | from cibuildwheel.util.packaging import DependencyConstraints |
24 | 23 |
|
@@ -439,50 +438,6 @@ def test_override_inherit_environment_with_references(tmp_path: Path) -> None: |
439 | 438 | } |
440 | 439 |
|
441 | 440 |
|
442 | | -@pytest.mark.parametrize( |
443 | | - ("toml_assignment", "env", "enable_args", "expected_result"), |
444 | | - [ |
445 | | - ("", {}, [], False), |
446 | | - ("enable = ['cpython-freethreading']", {}, [], True), |
447 | | - ("enable = []", {}, [], False), |
448 | | - ("", {}, ["cpython-freethreading"], True), |
449 | | - ("", {}, ["cpython-freethreading", "pypy"], True), |
450 | | - ("", {"CIBW_ENABLE": "pypy"}, [], False), |
451 | | - ("", {"CIBW_ENABLE": "cpython-freethreading"}, [], True), |
452 | | - ("enable = []", {"CIBW_ENABLE": "cpython-freethreading"}, [], True), |
453 | | - ("enable = ['cpython-freethreading']", {"CIBW_ENABLE": "pypy"}, [], True), |
454 | | - ("enable = ['cpython-freethreading']", {}, ["pypy"], True), |
455 | | - ("enable = ['cpython-freethreading']", {"CIBW_ENABLE": ""}, [], True), |
456 | | - ("enable = []", {"CIBW_ENABLE": ""}, [], False), |
457 | | - ], |
458 | | -) |
459 | | -def test_free_threaded_support( |
460 | | - tmp_path: Path, |
461 | | - toml_assignment: str, |
462 | | - env: dict[str, str], |
463 | | - enable_args: list[str], |
464 | | - expected_result: bool, |
465 | | -) -> None: |
466 | | - args = CommandLineArguments.defaults() |
467 | | - args.package_dir = tmp_path |
468 | | - args.enable = enable_args |
469 | | - |
470 | | - pyproject_toml: Path = tmp_path / "pyproject.toml" |
471 | | - pyproject_toml.write_text( |
472 | | - textwrap.dedent( |
473 | | - f"""\ |
474 | | - [tool.cibuildwheel] |
475 | | - {toml_assignment} |
476 | | - """ |
477 | | - ) |
478 | | - ) |
479 | | - options = Options(platform="linux", command_line_arguments=args, env=env) |
480 | | - if expected_result: |
481 | | - assert EnableGroup.CPythonFreeThreading in options.globals.build_selector.enable |
482 | | - else: |
483 | | - assert EnableGroup.CPythonFreeThreading not in options.globals.build_selector.enable |
484 | | - |
485 | | - |
486 | 441 | @pytest.mark.parametrize( |
487 | 442 | ("toml_assignment", "base_file_path", "packages"), |
488 | 443 | [ |
|
0 commit comments