summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-04-04 17:54:05 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-06-15 16:43:46 +0100
commit33f24313116e38d6cc30009fcad55871b5d9a6ee (patch)
treeb2383cfe3bcd2a961da18452d94e3436beb345d0
parentaee32452f9cf2ceb3234a1749ccd0ad3eb166e11 (diff)
downloadpython-setuptools-git-33f24313116e38d6cc30009fcad55871b5d9a6ee.tar.gz
Always run editable install test
-rw-r--r--setuptools/tests/test_editable_install.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/setuptools/tests/test_editable_install.py b/setuptools/tests/test_editable_install.py
index aac4f5ee..0d4980d3 100644
--- a/setuptools/tests/test_editable_install.py
+++ b/setuptools/tests/test_editable_install.py
@@ -3,6 +3,7 @@ from textwrap import dedent
import pytest
import jaraco.envs
+import jaraco.path
import path
@@ -85,18 +86,17 @@ EXAMPLE = {
SETUP_SCRIPT_STUB = "__import__('setuptools').setup()"
-MISSING_SETUP_SCRIPT = pytest.param(
- None,
- marks=pytest.mark.xfail(
- reason="Editable install is currently only supported with `setup.py`"
- )
-)
-@pytest.mark.parametrize("setup_script", [SETUP_SCRIPT_STUB, MISSING_SETUP_SCRIPT])
-def test_editable_with_pyproject(tmp_path, venv, setup_script):
+@pytest.mark.parametrize(
+ "files",
+ [
+ {**EXAMPLE, "setup.py": SETUP_SCRIPT_STUB},
+ EXAMPLE, # No setup.py script
+ ]
+)
+def test_editable_with_pyproject(tmp_path, venv, files):
project = tmp_path / "mypkg"
- files = {**EXAMPLE, "setup.py": setup_script}
project.mkdir()
jaraco.path.build(files, prefix=project)