We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c4c9c commit e5b2e15Copy full SHA for e5b2e15
tests/test_project.py
@@ -19,7 +19,7 @@
19
20
import mesonpy
21
22
-from .conftest import chdir, package_dir
+from .conftest import chdir, in_git_repo_context, package_dir
23
24
25
@pytest.mark.parametrize(
@@ -92,8 +92,9 @@ def wrapper(self, cmd):
92
'install-args': ('cli-install',),
93
}
94
95
- mesonpy.build_sdist(tmp_path, config_settings)
96
- mesonpy.build_wheel(tmp_path, config_settings)
+ with in_git_repo_context():
+ mesonpy.build_sdist(tmp_path, config_settings)
97
+ mesonpy.build_wheel(tmp_path, config_settings)
98
99
# check that the right commands are executed, namely that 'meson
100
# compile' is used on Windows rather than a 'ninja' direct
0 commit comments