From 7c8590ee4436d3d3706d60934459ba2717e000f7 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Wed, 3 May 2023 11:34:14 +0200 Subject: remove unused global in bindist tests (#37358) * remove unused global in bindist tests * remove unused function --- lib/spack/spack/relocate.py | 5 ----- lib/spack/spack/test/packaging.py | 5 ----- 2 files changed, 10 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/relocate.py b/lib/spack/spack/relocate.py index 52811dd8cc..c81fdb91ba 100644 --- a/lib/spack/spack/relocate.py +++ b/lib/spack/spack/relocate.py @@ -139,11 +139,6 @@ def _normalize_relative_paths(start_path, relative_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): return bytestring.rstrip(b"\x00").decode("ascii") diff --git a/lib/spack/spack/test/packaging.py b/lib/spack/spack/test/packaging.py index 75891ce94c..879c38849a 100644 --- a/lib/spack/spack/test/packaging.py +++ b/lib/spack/spack/test/packaging.py @@ -185,9 +185,6 @@ echo $PATH""" shutil.rmtree(mirror_path) stage.destroy() - # Remove cached binary specs since we deleted the mirror - bindist._cached_specs = set() - @pytest.mark.usefixtures("install_mockery") def test_relocate_text(tmpdir): @@ -208,8 +205,6 @@ def test_relocate_text(tmpdir): for line in script: assert new_dir in line 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): -- cgit v1.2.3-60-g2f50