From a540e36922daa82b3383bda0c7901b22be9bd730 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 28 Apr 2020 14:53:22 +0200 Subject: relocate: remove an assertion in _make_relative (#16351) This was an oversight in #15654 since `os.path.isfile` checks that the something is a file in the current filesystem. --- lib/spack/spack/relocate.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/relocate.py b/lib/spack/spack/relocate.py index 41770103b0..41faf273cd 100644 --- a/lib/spack/spack/relocate.py +++ b/lib/spack/spack/relocate.py @@ -140,10 +140,6 @@ def _make_relative(reference_file, path_root, paths): Returns: List of relative paths """ - # Check prerequisites of the function - msg = "{0} is not a file".format(reference_file) - assert os.path.isfile(reference_file), msg - start_directory = os.path.dirname(reference_file) pattern = re.compile(path_root) relative_paths = [] -- cgit v1.2.3-60-g2f50