Commit 8a7a014b authored by Sviatoslav Sydorenko's avatar Sviatoslav Sydorenko

Make `get_build_backend` cwd path customizable

parent be6abaec
......@@ -136,8 +136,10 @@ defns = [
class TestBuildMetaBackend:
backend_name = 'setuptools.build_meta'
def get_build_backend(self):
return BuildBackend(cwd='.', backend_name=self.backend_name)
def get_build_backend(self, cwd_path=None):
if cwd_path is None:
cwd_path = '.'
return BuildBackend(cwd=cwd_path, backend_name=self.backend_name)
@pytest.fixture(params=defns)
def build_backend(self, tmpdir, request):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment