Skip to content

Commit

Permalink
Remove copy from tests.lib.path.Path. (#6746)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrahunt authored and xavfernandez committed Jul 20, 2019
1 parent c275e9d commit 0d28601
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
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 @@ -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.
Expand Down

0 comments on commit 0d28601

Please sign in to comment.