File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ def test_root_parameter_creation(monkeypatch):
45
45
setuptools_scm .get_version ()
46
46
47
47
48
- def test_root_parameter_pass_by (monkeypatch ):
49
- assert_root (monkeypatch , '/tmp' )
50
- setuptools_scm .get_version (root = '/tmp' )
48
+ def test_root_parameter_pass_by (monkeypatch , tmpdir ):
49
+ assert_root (monkeypatch , tmpdir )
50
+ setuptools_scm .get_version (root = tmpdir . strpath )
51
51
52
52
53
53
def test_pretended (monkeypatch ):
@@ -56,9 +56,9 @@ def test_pretended(monkeypatch):
56
56
assert setuptools_scm .get_version () == pretense
57
57
58
58
59
- def test_root_relative_to (monkeypatch ):
60
- assert_root (monkeypatch , '/tmp/ alt' )
61
- __file__ = '/tmp/ module/file.py'
59
+ def test_root_relative_to (monkeypatch , tmpdir ):
60
+ assert_root (monkeypatch , tmpdir . join ( ' alt'). strpath )
61
+ __file__ = tmpdir . join ( ' module/file.py'). strpath
62
62
setuptools_scm .get_version (root = '../alt' , relative_to = __file__ )
63
63
64
64
You can’t perform that action at this time.
0 commit comments