# HG changeset patch # User Ludovic Chabant # Date 1512541827 28800 # Node ID 22e767899e52d73d5d6f926fbb3225aba0a20c44 # Parent 298b07a899b5743ca77625df2666f4bac9a398c8 tests: Fix path comparison in a test on Windows. diff -r 298b07a899b5 -r 22e767899e52 tests/test_sources_posts.py --- a/tests/test_sources_posts.py Tue Dec 05 22:26:25 2017 -0800 +++ b/tests/test_sources_posts.py Tue Dec 05 22:30:27 2017 -0800 @@ -1,6 +1,7 @@ import os.path import pytest from .mockutil import mock_fs, mock_fs_scope +from .pathutil import slashfix @pytest.mark.parametrize( @@ -39,7 +40,7 @@ s = app.getSource('test') items = list(s.getAllContents()) paths = [os.path.relpath(f.spec, s.fs_endpoint_path) for f in items] - assert paths == expected_paths + assert paths == slashfix(expected_paths) metadata = [ (f.metadata['route_params']['year'], f.metadata['route_params']['month'],