From c746ae01cc35c001eb37743fa1f26a6503eb73fb Mon Sep 17 00:00:00 2001 From: Sylwester Arabas Date: Mon, 5 Apr 2021 02:43:04 +0200 Subject: [PATCH] skipping README test on Windows --- PySDM_tests/devops_tests/test_readme_code.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PySDM_tests/devops_tests/test_readme_code.py b/PySDM_tests/devops_tests/test_readme_code.py index f135504ce..018ab51b6 100644 --- a/PySDM_tests/devops_tests/test_readme_code.py +++ b/PySDM_tests/devops_tests/test_readme_code.py @@ -1,7 +1,10 @@ import exdown import pathlib +import pytest +import platform -test_readme = exdown.pytests( +# note: skipping Windows to avoid non-UTF encoding trouble +test_readme = pytest.mark.skipif('platform.system() == "Windows"')(exdown.pytests( pathlib.Path(__file__).parent.parent.parent.joinpath("README.md").absolute(), syntax_filter="Python" -) +))