From 25f2e8cb461c6bb3ee7569cebb8498bd87c9ade7 Mon Sep 17 00:00:00 2001 From: Yannick Jadoul Date: Thu, 9 Apr 2020 14:37:12 +0200 Subject: [PATCH] Fix flake8 --- cibuildwheel/__main__.py | 1 - cibuildwheel/macos.py | 2 +- cibuildwheel/util.py | 1 - unit_test/main_tests/main_options_test.py | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) 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'])