Skip to content

Commit

Permalink
Merge pull request scrapy#1165 from scrapy/dont-collect-deprecated
Browse files Browse the repository at this point in the history
TST don't collect tests from deprecated modules.
  • Loading branch information
curita committed May 4, 2015
2 parents d00e43f + 8301d00 commit 4d0d04a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
import glob
import six
import pytest

collect_ignore = ["scrapy/stats.py", "scrapy/project.py"]

def _py_files(folder):
return glob.glob(folder + "/*.py") + glob.glob(folder + "/*/*.py")


collect_ignore = [
"scrapy/conf.py",
"scrapy/stats.py",
"scrapy/project.py",
"scrapy/utils/decorator.py",
"scrapy/statscol.py",
"scrapy/squeue.py",
"scrapy/log.py",
"scrapy/dupefilter.py",
] + _py_files("scrapy/contrib") + _py_files("scrapy/contrib_exp")


if six.PY3:
for line in open('tests/py3-ignores.txt'):
Expand Down

0 comments on commit 4d0d04a

Please sign in to comment.