File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -488,20 +488,19 @@ def build(options: Options, tmp_path: Path) -> None:
488
488
if repaired_wheel .name in {wheel .name for wheel in built_wheels }:
489
489
raise AlreadyBuiltWheelError (repaired_wheel .name )
490
490
491
- if build_options . test_command and options .globals .test_selector (config .identifier ):
492
- if config .arch == "ARM64" != platform_module .machine ():
493
- log .warning (
494
- unwrap (
495
- """
491
+ test_selected = options .globals .test_selector (config .identifier )
492
+ if test_selected and config .arch == "ARM64" != platform_module .machine ():
493
+ log .warning (
494
+ unwrap (
495
+ """
496
496
While arm64 wheels can be built on other platforms, they cannot
497
497
be tested. An arm64 runner is required. To silence this warning,
498
498
set `CIBW_TEST_SKIP: *-win_arm64`.
499
499
"""
500
- )
501
500
)
502
- # skip this test
503
- continue
504
-
501
+ )
502
+ # skip this test
503
+ elif test_selected and build_options . test_command :
505
504
log .step ("Testing wheel..." )
506
505
# set up a virtual environment to install and test from, to make sure
507
506
# there are no dependencies that were pulled in at build time.
You can’t perform that action at this time.
0 commit comments