Skip to content

Commit d1019e1

Browse files
committed
Refactor test_pyproject.toml to use more jaraco.path.build
1 parent 390f06a commit d1019e1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

setuptools/tests/config/test_pyprojecttoml.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,11 @@ def test_include_package_data_in_setuppy(tmp_path):
357357
358358
See https://github.com/pypa/setuptools/issues/3197#issuecomment-1079023889
359359
"""
360-
pyproject = tmp_path / "pyproject.toml"
361-
pyproject.write_text("[project]\nname = 'myproj'\nversion='42'\n")
362-
setuppy = tmp_path / "setup.py"
363-
setuppy.write_text("__import__('setuptools').setup(include_package_data=False)")
360+
files = {
361+
"pyproject.toml": "[project]\nname = 'myproj'\nversion='42'\n",
362+
"setup.py": "__import__('setuptools').setup(include_package_data=False)",
363+
}
364+
path_build(files, prefix=tmp_path)
364365

365366
with Path(tmp_path):
366367
dist = distutils.core.run_setup("setup.py", {}, stop_after="config")

0 commit comments

Comments
 (0)