Skip to content

Commit 842ea7b

Browse files
committed
Always run editable install test
1 parent 55aeb9a commit 842ea7b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

setuptools/tests/test_editable_install.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import pytest
55
import jaraco.envs
6+
import jaraco.path
67
import path
78

89

@@ -85,18 +86,17 @@ def venv(tmp_path, setuptools_wheel):
8586

8687

8788
SETUP_SCRIPT_STUB = "__import__('setuptools').setup()"
88-
MISSING_SETUP_SCRIPT = pytest.param(
89-
None,
90-
marks=pytest.mark.xfail(
91-
reason="Editable install is currently only supported with `setup.py`"
92-
)
93-
)
9489

9590

96-
@pytest.mark.parametrize("setup_script", [SETUP_SCRIPT_STUB, MISSING_SETUP_SCRIPT])
97-
def test_editable_with_pyproject(tmp_path, venv, setup_script):
91+
@pytest.mark.parametrize(
92+
"files",
93+
[
94+
{**EXAMPLE, "setup.py": SETUP_SCRIPT_STUB},
95+
EXAMPLE, # No setup.py script
96+
]
97+
)
98+
def test_editable_with_pyproject(tmp_path, venv, files):
9899
project = tmp_path / "mypkg"
99-
files = {**EXAMPLE, "setup.py": setup_script}
100100
project.mkdir()
101101
jaraco.path.build(files, prefix=project)
102102

0 commit comments

Comments
 (0)