Skip to content

Commit

Permalink
fix tests for windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Feb 8, 2017
1 parent 05064f7 commit a0290b0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions testing/test_basic_api.py
Expand Up @@ -45,9 +45,9 @@ def test_root_parameter_creation(monkeypatch):
setuptools_scm.get_version()


def test_root_parameter_pass_by(monkeypatch):
assert_root(monkeypatch, '/tmp')
setuptools_scm.get_version(root='/tmp')
def test_root_parameter_pass_by(monkeypatch, tmpdir):
assert_root(monkeypatch, tmpdir)
setuptools_scm.get_version(root=tmpdir.strpath)


def test_pretended(monkeypatch):
Expand All @@ -56,9 +56,9 @@ def test_pretended(monkeypatch):
assert setuptools_scm.get_version() == pretense


def test_root_relative_to(monkeypatch):
assert_root(monkeypatch, '/tmp/alt')
__file__ = '/tmp/module/file.py'
def test_root_relative_to(monkeypatch, tmpdir):
assert_root(monkeypatch, tmpdir.join('alt').strpath)
__file__ = tmpdir.join('module/file.py').strpath
setuptools_scm.get_version(root='../alt', relative_to=__file__)


Expand Down

0 comments on commit a0290b0

Please sign in to comment.