From 358e690c547e4d62ed50385ee205e6794849ac4f Mon Sep 17 00:00:00 2001 From: Chris Hunt Date: Fri, 19 Jul 2019 20:25:04 -0400 Subject: [PATCH] Remove move from tests.lib.path.Path. --- tests/lib/path.py | 6 ------ tests/lib/venv.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) 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()