changeset 1021:22e767899e52

tests: Fix path comparison in a test on Windows.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 05 Dec 2017 22:30:27 -0800
parents 298b07a899b5
children 84492d185813
files tests/test_sources_posts.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'],