Skip to content

Commit 60aa616

Browse files
committed
Fix existing tests
1 parent 4b0cf80 commit 60aa616

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/functional/test_install.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ def test_install_pep508_with_url_in_install_requires_url_change_wheel(script):
15391539
res = script.pip('install', pkga_path)
15401540
assert "Successfully installed dep-1.0" in str(res), str(res)
15411541

1542-
pkga_path.rmtree()
1542+
pkga_path.unlink()
15431543

15441544
# Updating the URL to the dependency installs the updated dependency
15451545
pkga_path = create_basic_wheel_for_package(
@@ -1563,8 +1563,8 @@ def test_install_pep508_with_url_in_install_requires_url_change_directory(
15631563

15641564
# Rename the package directory so it doesn't get overwritten when
15651565
# creating the package for dep_v2
1566-
dep_v1_path.move(dep_v1_path.folder / 'dep_v1')
1567-
dep_v1_path = dep_v1_path.folder / 'dep_v1'
1566+
dep_v1_path.rename(dep_v1_path.parent / 'dep_v1')
1567+
dep_v1_path = dep_v1_path.parent / 'dep_v1'
15681568

15691569
dep_v2_path = create_test_package_with_setup(
15701570
script, name='dep', version='2.0',
@@ -1577,7 +1577,7 @@ def test_install_pep508_with_url_in_install_requires_url_change_directory(
15771577
res = script.pip('install', pkga_path)
15781578
assert "Successfully installed dep-1.0" in str(res), str(res)
15791579

1580-
pkga_path.rmtree()
1580+
pkga_path.unlink()
15811581

15821582
# Updating the URL to the dependency installs the updated dependency
15831583
pkga_path = create_basic_wheel_for_package(

0 commit comments

Comments
 (0)