mirror of https://github.com/pypa/pip
Remove move from tests.lib.path.Path.
This commit is contained in:
parent
9d37e3ced2
commit
358e690c54
|
@ -195,12 +195,6 @@ class Path(_base):
|
||||||
"""
|
"""
|
||||||
return shutil.copytree(self, to, symlinks=True)
|
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):
|
def rename(self, to):
|
||||||
"""
|
"""
|
||||||
Renames a file or directory. May throw an OSError.
|
Renames a file or directory. May throw an OSError.
|
||||||
|
|
|
@ -154,7 +154,7 @@ class VirtualEnvironment(object):
|
||||||
self._create(clear=True)
|
self._create(clear=True)
|
||||||
|
|
||||||
def move(self, location):
|
def move(self, location):
|
||||||
self.location.move(location)
|
shutil.move(self.location, location)
|
||||||
self.location = Path(location)
|
self.location = Path(location)
|
||||||
self._update_paths()
|
self._update_paths()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue