Skip to content

Commit

Permalink
Test with tilde as home dir failed on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
RockBomber committed Jul 5, 2017
1 parent 6cc52c1 commit 867aaeb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testing/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ def test_custom_cache_dirname(self, testdir):
assert testdir.tmpdir.join(cache_dir).isdir()

@pytest.mark.parametrize('cache_dir', [
os.path.abspath('tmp'),
os.path.join('~', 'tmp')])
os.path.abspath('tmp'),
pytest.param(os.path.join('~', 'tmp'), marks=pytest.mark.skipif(sys.platform == 'win32',
reason='test for linux pathes')),
])
def test_cache_dirname_fail_on_abs(self, testdir, cache_dir):
testdir.makeini("""
[pytest]
Expand Down

0 comments on commit 867aaeb

Please sign in to comment.