Remove move from tests.lib.path.Path.

This commit is contained in:
Chris Hunt 2019-07-19 20:25:04 -04:00 committed by Xavier Fernandez
parent 9d37e3ced2
commit 358e690c54
2 changed files with 1 additions and 7 deletions

View File

@ -195,12 +195,6 @@ class Path(_base):
"""
return shutil.copytree(self, to, symlinks=True)
def move(self, to):
"""
Moves a file or directory to another path.
"""
return shutil.move(self, to)
def rename(self, to):
"""
Renames a file or directory. May throw an OSError.

View File

@ -154,7 +154,7 @@ class VirtualEnvironment(object):
self._create(clear=True)
def move(self, location):
self.location.move(location)
shutil.move(self.location, location)
self.location = Path(location)
self._update_paths()