diff options
Diffstat (limited to 'lib/spack/external/pytest-fallback/py/_path/local.py')
-rw-r--r-- | lib/spack/external/pytest-fallback/py/_path/local.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/spack/external/pytest-fallback/py/_path/local.py b/lib/spack/external/pytest-fallback/py/_path/local.py index 72ffb9f6cb..d2f16b993e 100644 --- a/lib/spack/external/pytest-fallback/py/_path/local.py +++ b/lib/spack/external/pytest-fallback/py/_path/local.py @@ -12,8 +12,6 @@ from stat import S_ISLNK, S_ISDIR, S_ISREG from os.path import abspath, normpath, isabs, exists, isdir, isfile, islink, dirname -from llnl.util.symlink import symlink - if sys.version_info > (3,0): def map_as_list(func, iter): return list(map(func, iter)) @@ -81,7 +79,7 @@ class PosixPath(common.PathBase): def mksymlinkto(self, value, absolute=1): """ create a symbolic link with the given value (pointing to another name). """ if absolute: - py.error.checked_call(symlink, str(value), self.strpath) + py.error.checked_call(os.symlink, str(value), self.strpath) else: base = self.common(value) # with posix local paths '/' is always a common base @@ -89,7 +87,7 @@ class PosixPath(common.PathBase): reldest = self.relto(base) n = reldest.count(self.sep) target = self.sep.join(('..', )*n + (relsource, )) - py.error.checked_call(symlink, target, self.strpath) + py.error.checked_call(os.symlink, target, self.strpath) def getuserid(user): import pwd @@ -894,7 +892,7 @@ class LocalPath(FSBase): except OSError: pass try: - symlink(src, dest) + os.symlink(src, dest) except (OSError, AttributeError, NotImplementedError): pass |