py3-ignores.txt supports comments

This commit is contained in:
klangner 2015-02-09 10:28:22 +01:00
parent 75f1560ff5
commit 5ea4a72b8e
2 changed files with 6 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
/.vagrant
/scrapy.iml
*.pyc
_trial_temp*
dropin.cache

View File

@ -9,9 +9,10 @@ if 'django' not in optional_features:
collect_ignore.append("tests/test_djangoitem/models.py")
if six.PY3:
for fn in open('tests/py3-ignores.txt'):
if fn.strip():
collect_ignore.append(fn.strip())
for line in open('tests/py3-ignores.txt'):
filePath = line.strip()
if len(filePath) > 0 and filePath[0] != '#':
collect_ignore.append(filePath)
class LogObservers:
"""Class for keeping track of log observers across test modules"""