Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Jul 20, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions tests/functional/test_download.py
@@ -1,4 +1,5 @@
import os.path
import shutil
import textwrap

import pytest
Expand All @@ -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
Expand Down
3 changes: 0 additions & 3 deletions tests/lib/path.py
Expand Up @@ -192,9 +192,6 @@ def rmtree(self, noerrors=True):
"""
return shutil.rmtree(self, ignore_errors=noerrors)

def copy(self, to):
return shutil.copy(self, to)

def copytree(self, to):
"""
Copies a directory tree to another path.
Expand Down