diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-01-18 11:22:05 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-01-18 11:22:05 -0500 |
commit | 77aefc128699182e5b1271162f0b7c557d81b1d5 (patch) | |
tree | d228d7203b29c6921aa92a6f665d61a25b647526 | |
parent | daf01571d508234fcff707b1a1156c7496c0c131 (diff) | |
download | python-setuptools-git-77aefc128699182e5b1271162f0b7c557d81b1d5.tar.gz |
Restore test_build_sdist_relative_path_import to its former simple implementation.
-rw-r--r-- | setuptools/tests/test_build_meta.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py index 5331e2f8..e117d8e6 100644 --- a/setuptools/tests/test_build_meta.py +++ b/setuptools/tests/test_build_meta.py @@ -125,8 +125,8 @@ defns = [ class TestBuildMetaBackend: backend_name = 'setuptools.build_meta' - def get_build_backend(self, **kwargs): - return BuildBackend(backend_name=self.backend_name, **kwargs) + def get_build_backend(self): + return BuildBackend(backend_name=self.backend_name) @pytest.fixture(params=defns) def build_backend(self, tmpdir, request): @@ -334,11 +334,11 @@ class TestBuildMetaBackend: """) } - def test_build_sdist_relative_path_import(self, tmp_path): - build_files(self._relative_path_import_files, prefix=str(tmp_path)) - build_backend = self.get_build_backend(cwd=tmp_path) + def test_build_sdist_relative_path_import(self, tmpdir_cwd): + build_files(self._relative_path_import_files) + build_backend = self.get_build_backend() with pytest.raises(ImportError, match="^No module named 'hello'$"): - build_backend.build_sdist(tmp_path / "temp") + build_backend.build_sdist("temp") @pytest.mark.parametrize('setup_literal, requirements', [ ("'foo'", ['foo']), |