diff --git a/tests/lib/path.py b/tests/lib/path.py index fec23d7a8..18e9d744e 100644 --- a/tests/lib/path.py +++ b/tests/lib/path.py @@ -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. diff --git a/tests/lib/venv.py b/tests/lib/venv.py index 609989f6f..f78ecbb92 100644 --- a/tests/lib/venv.py +++ b/tests/lib/venv.py @@ -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()