mirror of https://github.com/pypa/pip
Remove copy from tests.lib.path.Path. (#6746)
This commit is contained in:
parent
c275e9d1ab
commit
0d286012f7
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue