diff --git a/tests/backend/builders/plugin/test_interface.py b/tests/backend/builders/plugin/test_interface.py index 8a8bfdd88..afaa33de7 100644 --- a/tests/backend/builders/plugin/test_interface.py +++ b/tests/backend/builders/plugin/test_interface.py @@ -127,7 +127,6 @@ def test_invalid_metadata(self, isolation): } builder = MockBuilder(str(isolation), config=config) builder.PLUGIN_NAME = 'foo' - builder.get_version_api = lambda: {'1': lambda *_args, **_kwargs: ''} with pytest.raises( ValueError, diff --git a/tests/backend/builders/test_binary.py b/tests/backend/builders/test_binary.py index 4c1e2ea57..cce31c6a6 100644 --- a/tests/backend/builders/test_binary.py +++ b/tests/backend/builders/test_binary.py @@ -21,7 +21,7 @@ def __init__(self, env_vars: dict): def __eq__(self, other): return all(not (key not in other or other[key] != value) for key, value in self.env_vars.items()) - def __hash__(self): + def __hash__(self): # no cov return hash(self.env_vars) diff --git a/tests/backend/builders/test_wheel.py b/tests/backend/builders/test_wheel.py index 13b943110..56309e633 100644 --- a/tests/backend/builders/test_wheel.py +++ b/tests/backend/builders/test_wheel.py @@ -34,10 +34,7 @@ def extract_zip(zip_path: Path, target: Path) -> None: for name in z.namelist(): member = z.getinfo(name) path = z.extract(member, target) - if member.is_dir(): - os.chmod(path, 0o755) - else: - os.chmod(path, member.external_attr >> 16) + os.chmod(path, member.external_attr >> 16) def test_class(): diff --git a/tests/conftest.py b/tests/conftest.py index ef33a54a9..7cccee097 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -458,7 +458,7 @@ def pytest_runtest_setup(item): if marker.name == 'requires_unix' and PLATFORM.windows: pytest.skip('Not running on a Linux-based platform') - if marker.name == 'requires_git' and not shutil.which('git'): + if marker.name == 'requires_git' and not shutil.which('git'): # no cov pytest.skip('Git not present in the environment')