Skip to content

Commit 358e690

Browse files
chrahuntxavfernandez
authored andcommitted
Remove move from tests.lib.path.Path.
1 parent 9d37e3c commit 358e690

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

tests/lib/path.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,6 @@ def copytree(self, to):
195195
"""
196196
return shutil.copytree(self, to, symlinks=True)
197197

198-
def move(self, to):
199-
"""
200-
Moves a file or directory to another path.
201-
"""
202-
return shutil.move(self, to)
203-
204198
def rename(self, to):
205199
"""
206200
Renames a file or directory. May throw an OSError.

tests/lib/venv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def clear(self):
154154
self._create(clear=True)
155155

156156
def move(self, location):
157-
self.location.move(location)
157+
shutil.move(self.location, location)
158158
self.location = Path(location)
159159
self._update_paths()
160160

0 commit comments

Comments
 (0)