We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c275e9d commit 0d28601Copy full SHA for 0d28601
tests/functional/test_download.py
@@ -1,4 +1,5 @@
1
import os.path
2
+import shutil
3
import textwrap
4
5
import pytest
@@ -8,9 +9,10 @@
8
9
10
11
def fake_wheel(data, wheel_path):
- data.packages.joinpath(
12
- 'simple.dist-0.1-py2.py3-none-any.whl'
13
- ).copy(data.packages.joinpath(wheel_path))
+ shutil.copy(
+ data.packages.joinpath('simple.dist-0.1-py2.py3-none-any.whl'),
14
+ data.packages.joinpath(wheel_path),
15
+ )
16
17
18
@pytest.mark.network
tests/lib/path.py
@@ -179,9 +179,6 @@ def rmdir(self):
179
"""
180
return os.rmdir(self)
181
182
- def copy(self, to):
183
- return shutil.copy(self, to)
184
-
185
def copytree(self, to):
186
187
Copies a directory tree to another path.
0 commit comments