diff options
author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2021-01-01 02:28:22 +0100 |
---|---|---|
committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2021-01-18 00:47:04 +0100 |
commit | 08ded165701faff86313674b8ee92730902e7a3c (patch) | |
tree | 411cbe70fa4c2d7f22f6e6baf0a33262091c743e | |
parent | 8a7a014b8abebcbec942a12d5c63759ada956802 (diff) | |
download | python-setuptools-git-08ded165701faff86313674b8ee92730902e7a3c.tar.gz |
Replace `tmpdir_cwd` fixture with `tmp_path`
-rw-r--r-- | setuptools/tests/test_build_meta.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py index a117a9be..3f1ba046 100644 --- a/setuptools/tests/test_build_meta.py +++ b/setuptools/tests/test_build_meta.py @@ -347,12 +347,11 @@ class TestBuildMetaBackend: """) } - 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): + 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_path=tmp_path) with pytest.raises(ImportError, match="^No module named 'hello'$"): - build_backend.build_sdist("temp") + build_backend.build_sdist(tmp_path / "temp") @pytest.mark.parametrize('setup_literal, requirements', [ ("'foo'", ['foo']), |