testing: Properly exclude files for linting in Windows.

For files to be excluded in Windows, their paths have to
be normalized, so that the string matching works.
This commit is contained in:
derAnfaenger 2017-07-23 13:18:53 +02:00 committed by Tim Abbott
parent 428ded449e
commit 5dd359fd4d
2 changed files with 2 additions and 2 deletions

View file

@ -161,7 +161,7 @@ def build_custom_checkers(by_lang):
# This rule might give false positives in virtualenv setup files which should be excluded,
# and comments which should be rewritten to avoid use of "python2", "python3", etc.
{'pattern': 'python[23]',
'exclude': set(['tools/provision',]),
'exclude': set(['tools/provision']),
'description': 'Explicit python invocations should not include a version'},
{'pattern': '(^|\s)open\s*\(',
'description': 'open() should not be used in Zulip\'s bots. Use functions'