Skip to content

Commit d88de26

Browse files
committed
tests: add pyproject.toml for failing test
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent 11de286 commit d88de26

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_troubleshooting.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@
77

88
SO_FILE_WARNING = "NOTE: Shared object (.so) files found in this project."
99

10+
PYPROJECT_TOML = """
11+
[build-system]
12+
requires = ["setuptools"]
13+
build-backend = "setuptools.build_meta:__legacy__"
14+
"""
15+
1016

1117
@pytest.mark.parametrize("project_contains_so_files", [False, True])
1218
def test_failed_build_with_so_files(tmp_path, capfd, build_frontend_env, project_contains_so_files):
1319
project = TestProject()
1420
project.files["setup.py"] = "raise Exception('this build will fail')\n"
21+
project.files["pyproject.toml"] = PYPROJECT_TOML
1522
if project_contains_so_files:
1623
project.files["libnothing.so"] = ""
1724

0 commit comments

Comments
 (0)