summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2021-01-01 02:28:22 +0100
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2021-01-18 00:47:04 +0100
commit08ded165701faff86313674b8ee92730902e7a3c (patch)
tree411cbe70fa4c2d7f22f6e6baf0a33262091c743e
parent8a7a014b8abebcbec942a12d5c63759ada956802 (diff)
downloadpython-setuptools-git-08ded165701faff86313674b8ee92730902e7a3c.tar.gz
Replace `tmpdir_cwd` fixture with `tmp_path`
-rw-r--r--setuptools/tests/test_build_meta.py9
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']),