|
@@ -12,8 +12,8 @@ from .utils import assert_is_dir, assert_is_file
|
|
|
|
|
|
@pytest.mark.network
|
|
|
def test_matching_one_pattern(tmpdir):
|
|
|
- td1 = tmpdir.mkdir('wheels')
|
|
|
- td2 = tmpdir.mkdir('pkgs')
|
|
|
+ td1 = str(tmpdir.mkdir('wheels'))
|
|
|
+ td2 = str(tmpdir.mkdir('pkgs'))
|
|
|
|
|
|
subprocess.call(['pip', 'wheel', 'requests==2.19.1', '-w', str(td1)])
|
|
|
|
|
@@ -27,8 +27,8 @@ def test_matching_one_pattern(tmpdir):
|
|
|
|
|
|
@pytest.mark.network
|
|
|
def test_duplicate_wheel_files_raise(tmpdir):
|
|
|
- td1 = tmpdir.mkdir('wheels')
|
|
|
- td2 = tmpdir.mkdir('pkgs')
|
|
|
+ td1 = str(tmpdir.mkdir('wheels'))
|
|
|
+ td2 = str(tmpdir.mkdir('pkgs'))
|
|
|
|
|
|
subprocess.call(['pip', 'wheel', 'requests==2.19.1', '-w', str(td1)])
|
|
|
|
|
@@ -37,8 +37,8 @@ def test_duplicate_wheel_files_raise(tmpdir):
|
|
|
[os.path.join(td1, '*.whl')], td2, platform.python_version(), 64)
|
|
|
|
|
|
def test_invalid_wheel_file_raise(tmpdir):
|
|
|
- td1 = tmpdir.mkdir('wheels')
|
|
|
- td2 = tmpdir.mkdir('pkgs')
|
|
|
+ td1 = str(tmpdir.mkdir('wheels'))
|
|
|
+ td2 = str(tmpdir.mkdir('pkgs'))
|
|
|
|
|
|
open(os.path.join(td1, 'notawheel.txt'), 'w+')
|
|
|
|
|
@@ -46,8 +46,8 @@ def test_invalid_wheel_file_raise(tmpdir):
|
|
|
fetch_pypi_wheels([], [os.path.join(td1, '*')], td2, platform.python_version(), 64)
|
|
|
|
|
|
def test_incompatible_plateform_wheel_file_raise(tmpdir):
|
|
|
- td1 = tmpdir.mkdir('wheels')
|
|
|
- td2 = tmpdir.mkdir('pkgs')
|
|
|
+ td1 = str(tmpdir.mkdir('wheels'))
|
|
|
+ td2 = str(tmpdir.mkdir('pkgs'))
|
|
|
|
|
|
open(os.path.join(td1, 'incompatiblewheel-1.0.0-py2.py3-none-linux_x86_64.whl'), 'w+')
|
|
|
|
|
@@ -57,8 +57,8 @@ def test_incompatible_plateform_wheel_file_raise(tmpdir):
|
|
|
fetch_pypi_wheels([], [os.path.join(td1, '*.whl')], td2, platform.python_version(), 64)
|
|
|
|
|
|
def test_incompatible_python_wheel_file_raise(tmpdir):
|
|
|
- td1 = tmpdir.mkdir('wheels')
|
|
|
- td2 = tmpdir.mkdir('pkgs')
|
|
|
+ td1 = str(tmpdir.mkdir('wheels'))
|
|
|
+ td2 = str(tmpdir.mkdir('pkgs'))
|
|
|
|
|
|
open(os.path.join(td1, 'incompatiblewheel-1.0.0-py26-none-any.whl'), 'w+')
|
|
|
|
|
@@ -68,8 +68,8 @@ def test_incompatible_python_wheel_file_raise(tmpdir):
|
|
|
fetch_pypi_wheels([], [os.path.join(td1, '*.whl')], td2, platform.python_version(), 64)
|
|
|
|
|
|
def test_useless_wheel_glob_path_raise(tmpdir):
|
|
|
- td1 = tmpdir.mkdir('wheels')
|
|
|
- td2 = tmpdir.mkdir('pkgs')
|
|
|
+ td1 = str(tmpdir.mkdir('wheels'))
|
|
|
+ td2 = str(tmpdir.mkdir('pkgs'))
|
|
|
|
|
|
with pytest.raises(ValueError, match='does not match any wheel file'):
|
|
|
fetch_pypi_wheels([], [os.path.join(td1, '*.whl')], td2, platform.python_version(), 64)
|