Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Use os.sep instead because of windows
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Jul 11, 2019
1 parent b505072 commit 3a54583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_salt_runtests_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def pytest_collection_modifyitems(config, items):
if relpath in names:
# Whitelisted test
continue
elif relpath.startswith('tests/unit'):
elif relpath.startswith(os.sep.join(['tests', 'unit'])):
# Unit tests are whitelisted
continue
items.remove(item)
Expand Down

0 comments on commit 3a54583

Please sign in to comment.