diff --git a/cibuildwheel/__main__.py b/cibuildwheel/__main__.py index ffb0b684..ab1aa654 100644 --- a/cibuildwheel/__main__.py +++ b/cibuildwheel/__main__.py @@ -202,7 +202,6 @@ def main(): before_test=before_test, dependency_constraints=dependency_constraints, manylinux_images=manylinux_images - ) # Python is buffering by default when running on the CI platforms, giving problems interleaving subprocess call output with unflushed calls to 'print' diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index d0d264c6..798cb493 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -181,7 +181,7 @@ def build(options: BuildOptions): dependency_constraint_flags = [ '-c', options.dependency_constraints.get_for_python_version(config.version) ] - + env = setup_python(config, dependency_constraint_flags, options.environment) # run the before_build command diff --git a/cibuildwheel/util.py b/cibuildwheel/util.py index 6187986d..03fe6af5 100644 --- a/cibuildwheel/util.py +++ b/cibuildwheel/util.py @@ -1,5 +1,4 @@ import os -import sys import urllib.request from fnmatch import fnmatch from time import sleep diff --git a/unit_test/main_tests/main_options_test.py b/unit_test/main_tests/main_options_test.py index 9439daf6..74cbe3c1 100644 --- a/unit_test/main_tests/main_options_test.py +++ b/unit_test/main_tests/main_options_test.py @@ -164,7 +164,7 @@ def test_test_extras(test_extras, platform_specific, platform, intercepted_build main() - assert intercepted_build_args.args[0],test_extras == ('[' + test_extras + ']' if test_extras else '') + assert intercepted_build_args.args[0].test_extras == ('[' + test_extras + ']' if test_extras else '') @pytest.mark.parametrize('test_command', [None, 'test --command'])