summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2021-01-01 02:27:43 +0100
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2021-01-18 00:47:04 +0100
commit8a7a014b8abebcbec942a12d5c63759ada956802 (patch)
tree665bf1c223677090684483fcd9bb0d25ad982cb4 /setuptools/tests
parentbe6abaec7183e43c164be21112d0b57307748e1d (diff)
downloadpython-setuptools-git-8a7a014b8abebcbec942a12d5c63759ada956802.tar.gz
Make `get_build_backend` cwd path customizable
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_build_meta.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py
index 63c7c275..a117a9be 100644
--- a/setuptools/tests/test_build_meta.py
+++ b/setuptools/tests/test_build_meta.py
@@ -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):