summaryrefslogtreecommitdiff
path: root/scss/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'scss/tests/conftest.py')
-rw-r--r--scss/tests/conftest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scss/tests/conftest.py b/scss/tests/conftest.py
index 64ef44e..b2036ff 100644
--- a/scss/tests/conftest.py
+++ b/scss/tests/conftest.py
@@ -42,19 +42,19 @@ def pytest_configure(config):
# relative paths to the input file.
test_file_tuples = []
test_file_ids = []
- for fn in glob.glob(os.path.join(FILES_DIR, '*/*.scss')):
+ for fn in glob.glob(os.path.join(FILES_DIR, '*%s*.scss' % os.sep)):
if os.path.basename(fn)[0] == '_':
continue
relfn = os.path.relpath(fn, FILES_DIR)
pytest_trigger = None
- if relfn.startswith(('from-sassc/', 'from-ruby/')):
+ if relfn.startswith(('from-sassc' + os.sep, 'from-ruby' + os.sep)):
pytest_trigger = pytest.mark.skipif(
not include_ruby, reason="skipping ruby tests by default")
- elif relfn.startswith('xfail/'):
+ elif relfn.startswith('xfail' + os.sep):
pytest_trigger = pytest.mark.xfail
- elif relfn.startswith('fonts/'):
+ elif relfn.startswith('fonts' + os.sep):
pytest_trigger = pytest.mark.skipif(
not fontforge, reason="font tests require fontforge")