Skip to content

Commit

Permalink
TST don't collect tests from deprecated modules.
Browse files Browse the repository at this point in the history
This removes some deprecation warnings in tests.
  • Loading branch information
kmike committed May 1, 2015
1 parent d00e43f commit 8301d00
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 8301d00

Please sign in to comment.