Remove copy from tests.lib.path.Path. (#6746)

This commit is contained in:
Christopher Hunt 2019-07-20 19:12:07 -04:00 committed by Xavier Fernandez
parent c275e9d1ab
commit 0d286012f7
2 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,5 @@
import os.path
import shutil
import textwrap
import pytest
@ -8,9 +9,10 @@ from tests.lib.path import Path
def fake_wheel(data, wheel_path):
data.packages.joinpath(
'simple.dist-0.1-py2.py3-none-any.whl'
).copy(data.packages.joinpath(wheel_path))
shutil.copy(
data.packages.joinpath('simple.dist-0.1-py2.py3-none-any.whl'),
data.packages.joinpath(wheel_path),
)
@pytest.mark.network

View File

@ -179,9 +179,6 @@ class Path(_base):
"""
return os.rmdir(self)
def copy(self, to):
return shutil.copy(self, to)
def copytree(self, to):
"""
Copies a directory tree to another path.