Skip to content

Commit d2538bf

Browse files
committed
Added windows path separator to list of alphabet characters to ignore.
Corrected instance of hard-coded unix path separator.
1 parent 5cfcf86 commit d2538bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/test/toolchains/api_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from tools.targets import TARGET_MAP
1717
from tools.notifier.mock import MockNotifier
1818

19-
ALPHABET = [char for char in printable if char not in [u'.', u'/']]
19+
ALPHABET = [char for char in printable if char not in [u'.', u'/', u'\\']]
2020

2121
@given(fixed_dictionaries({
2222
'common': lists(text()),
@@ -175,7 +175,7 @@ def test_detect_duplicates(filenames):
175175
assert "dupe.c" in notification["message"]
176176
assert "dupe.cpp" in notification["message"]
177177

178-
@given(text(alphabet=ALPHABET + ["/"], min_size=1))
178+
@given(text(alphabet=ALPHABET + [os.sep], min_size=1))
179179
@given(booleans())
180180
@given(booleans())
181181
@settings(max_examples=20)

0 commit comments

Comments
 (0)