Skip to content

Commit 0d28601

Browse files
chrahuntxavfernandez
authored andcommitted
Remove copy from tests.lib.path.Path. (#6746)
1 parent c275e9d commit 0d28601

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tests/functional/test_download.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os.path
2+
import shutil
23
import textwrap
34

45
import pytest
@@ -8,9 +9,10 @@
89

910

1011
def fake_wheel(data, wheel_path):
11-
data.packages.joinpath(
12-
'simple.dist-0.1-py2.py3-none-any.whl'
13-
).copy(data.packages.joinpath(wheel_path))
12+
shutil.copy(
13+
data.packages.joinpath('simple.dist-0.1-py2.py3-none-any.whl'),
14+
data.packages.joinpath(wheel_path),
15+
)
1416

1517

1618
@pytest.mark.network

tests/lib/path.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,6 @@ def rmdir(self):
179179
"""
180180
return os.rmdir(self)
181181

182-
def copy(self, to):
183-
return shutil.copy(self, to)
184-
185182
def copytree(self, to):
186183
"""
187184
Copies a directory tree to another path.

0 commit comments

Comments
 (0)