diff --git a/tests/functional/test_download.py b/tests/functional/test_download.py index a0ac7f353d6..1a20870c087 100644 --- a/tests/functional/test_download.py +++ b/tests/functional/test_download.py @@ -1,4 +1,5 @@ import os.path +import shutil import textwrap import pytest @@ -8,9 +9,10 @@ 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 diff --git a/tests/lib/path.py b/tests/lib/path.py index 25785a62ba4..42e89079bab 100644 --- a/tests/lib/path.py +++ b/tests/lib/path.py @@ -179,9 +179,6 @@ def rmdir(self): """ return os.rmdir(self) - def copy(self, to): - return shutil.copy(self, to) - def copytree(self, to): """ Copies a directory tree to another path.