summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2023-05-03 11:34:14 +0200
committerGitHub <noreply@github.com>2023-05-03 05:34:14 -0400
commit7c8590ee4436d3d3706d60934459ba2717e000f7 (patch)
tree2d219c2d376a0fa9c2a0a0aee3fe502c807d3c94
parent71aa12f72ce354295f847ae5fe0fea93cc911d03 (diff)
downloadspack-7c8590ee4436d3d3706d60934459ba2717e000f7.tar.gz
spack-7c8590ee4436d3d3706d60934459ba2717e000f7.tar.bz2
spack-7c8590ee4436d3d3706d60934459ba2717e000f7.tar.xz
spack-7c8590ee4436d3d3706d60934459ba2717e000f7.zip
remove unused global in bindist tests (#37358)
* remove unused global in bindist tests * remove unused function
-rw-r--r--lib/spack/spack/relocate.py5
-rw-r--r--lib/spack/spack/test/packaging.py5
2 files changed, 0 insertions, 10 deletions
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):