Use shared_data to avoid copying the data directory
@@ -9,11 +9,11 @@ from pip._internal.req import InstallRequirement
("pep517_setup_only", False),
("pep517_pyproject_only", True),
])
-def test_use_pep517(data, source, expected):
+def test_use_pep517(shared_data, source, expected):
"""
Test that we choose correctly between PEP 517 and legacy code paths
"""
- src = data.src.joinpath(source)
+ src = shared_data.src.joinpath(source)
req = InstallRequirement(None, None, source_dir=src)
req.load_pyproject_toml()
assert req.use_pep517 is expected
@@ -23,11 +23,11 @@ def test_use_pep517(data, source, expected):
("pep517_setup_and_pyproject", "specifies a build backend"),
("pep517_pyproject_only", "does not have a setup.py"),
])
-def test_disabling_pep517_invalid(data, source, msg):
+def test_disabling_pep517_invalid(shared_data, source, msg):
"""
Test that we fail if we try to disable PEP 517 when it's not acceptable
"""
- src = data.src.joinpath(source)
+ src = shared_data.src.joinpath(source)
req = InstallRequirement(None, None, source_dir=src)
# Simulate --no-use-pep517
