Skip to content

Commit

Permalink
Remove move from tests.lib.path.Path.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrahunt authored and xavfernandez committed Jul 20, 2019
1 parent 9d37e3c commit 358e690
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions tests/lib/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,6 @@ def copytree(self, to):
"""
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.
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def clear(self):
self._create(clear=True)

def move(self, location):
self.location.move(location)
shutil.move(self.location, location)
self.location = Path(location)
self._update_paths()

Expand Down

0 comments on commit 358e690

Please sign in to comment.