remove unused global in bindist tests (#37358)

* remove unused global in bindist tests
* remove unused function
This commit is contained in:
Harmen Stoppels 2023-05-03 11:34:14 +02:00 committed by GitHub
parent 71aa12f72c
commit 7c8590ee44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 10 deletions

View file

@ -139,11 +139,6 @@ def _normalize_relative_paths(start_path, relative_paths):
return normalized_paths return normalized_paths
def _placeholder(dirname):
"""String of of @'s with same length of the argument"""
return "@" * len(dirname)
def _decode_macho_data(bytestring): def _decode_macho_data(bytestring):
return bytestring.rstrip(b"\x00").decode("ascii") return bytestring.rstrip(b"\x00").decode("ascii")

View file

@ -185,9 +185,6 @@ def test_buildcache(mock_archive, tmpdir):
shutil.rmtree(mirror_path) shutil.rmtree(mirror_path)
stage.destroy() stage.destroy()
# Remove cached binary specs since we deleted the mirror
bindist._cached_specs = set()
@pytest.mark.usefixtures("install_mockery") @pytest.mark.usefixtures("install_mockery")
def test_relocate_text(tmpdir): def test_relocate_text(tmpdir):
@ -208,8 +205,6 @@ def test_relocate_text(tmpdir):
for line in script: for line in script:
assert new_dir in line assert new_dir in line
ensure_binary_is_relocatable(os.path.realpath(filename)) ensure_binary_is_relocatable(os.path.realpath(filename))
# Remove cached binary specs since we deleted the mirror
bindist._cached_specs = set()
def test_relocate_links(tmpdir): def test_relocate_links(tmpdir):