Commit 08ded165 authored by Sviatoslav Sydorenko's avatar Sviatoslav Sydorenko

Replace `tmpdir_cwd` fixture with `tmp_path`

parent 8a7a014b
...@@ -347,12 +347,11 @@ class TestBuildMetaBackend: ...@@ -347,12 +347,11 @@ class TestBuildMetaBackend:
""") """)
} }
def test_build_sdist_relative_path_import(self, tmpdir_cwd): def test_build_sdist_relative_path_import(self, tmp_path):
build_files(self._relative_path_import_files) build_files(self._relative_path_import_files, prefix=str(tmp_path))
build_backend = self.get_build_backend() build_backend = self.get_build_backend(cwd_path=tmp_path)
with pytest.raises(ImportError):
with pytest.raises(ImportError, match="^No module named 'hello'$"): 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', [ @pytest.mark.parametrize('setup_literal, requirements', [
("'foo'", ['foo']), ("'foo'", ['foo']),
......
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