Skip to content

Commit

Permalink
skipping README test on Windows through sys.getfilesystemencoding() !…
Browse files Browse the repository at this point in the history
…= 'utf-8'
  • Loading branch information
slayoo committed Apr 5, 2021
1 parent c746ae0 commit 34e79f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PySDM_tests/devops_tests/test_readme_code.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import exdown
import pathlib
import pytest
import platform
import sys

# note: skipping Windows to avoid non-UTF encoding trouble
test_readme = pytest.mark.skipif('platform.system() == "Windows"')(exdown.pytests(

test_readme = pytest.mark.skipif("sys.getfilesystemencoding() != 'utf-8'")(exdown.pytests(
pathlib.Path(__file__).parent.parent.parent.joinpath("README.md").absolute(),
syntax_filter="Python"
))

0 comments on commit 34e79f2

Please sign in to comment.