Skip to content

Commit 4d0d04a

Browse files
committed
Merge pull request scrapy#1165 from scrapy/dont-collect-deprecated
TST don't collect tests from deprecated modules.
2 parents d00e43f + 8301d00 commit 4d0d04a

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

conftest.py

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
1+
import glob
12
import six
23
import pytest
34

4-
collect_ignore = ["scrapy/stats.py", "scrapy/project.py"]
5+
6+
def _py_files(folder):
7+
return glob.glob(folder + "/*.py") + glob.glob(folder + "/*/*.py")
8+
9+
10+
collect_ignore = [
11+
"scrapy/conf.py",
12+
"scrapy/stats.py",
13+
"scrapy/project.py",
14+
"scrapy/utils/decorator.py",
15+
"scrapy/statscol.py",
16+
"scrapy/squeue.py",
17+
"scrapy/log.py",
18+
"scrapy/dupefilter.py",
19+
] + _py_files("scrapy/contrib") + _py_files("scrapy/contrib_exp")
20+
521

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

0 commit comments

Comments
 (0)