From 6340374eb2954996a8e04f5860b6c4db6ff3e123 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Tue, 18 Jan 2022 10:58:12 +0100 Subject: fix #669: restore old get_version signature --- testing/test_basic_api.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'testing/test_basic_api.py') diff --git a/testing/test_basic_api.py b/testing/test_basic_api.py index bb3b4ed..55bf346 100644 --- a/testing/test_basic_api.py +++ b/testing/test_basic_api.py @@ -58,9 +58,12 @@ def test_version_from_scm(wd): setuptools_scm.version_from_scm(str(wd)) -def test_root_parameter_pass_by(monkeypatch, tmpdir): - assert_root(monkeypatch, tmpdir) - setuptools_scm.get_version(root=tmpdir.strpath) +def test_root_parameter_pass_by(monkeypatch: pytest.MonkeyPatch, tmp_path: Path): + assert_root(monkeypatch, os.fspath(tmp_path)) + setuptools_scm.get_version(root=os.fspath(tmp_path)) + setuptools_scm.get_version( + os.fspath(tmp_path) + ) # issue 669 - posarg difference between Configuration and get_version def test_parentdir_prefix(tmpdir, monkeypatch): -- cgit v1.2.1