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 Apr 16, 2015
1 parent fb85bd4 commit 9426cad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@

from scrapy import optional_features

collect_ignore = ["scrapy/stats.py", "scrapy/project.py"]
collect_ignore = [
"scrapy/conf.py",
"scrapy/stats.py",
"scrapy/project.py",
"scrapy/contrib_exp/__init__.py",
"scrapy/contrib_exp/iterators.py",
"scrapy/contrib_exp/downloadermiddleware/__init__.py",
"scrapy/contrib_exp/downloadermiddleware/decompression.py",
]
if 'django' not in optional_features:
collect_ignore.append("tests/test_djangoitem/models.py")

Expand All @@ -14,6 +22,7 @@
if len(file_path) > 0 and file_path[0] != '#':
collect_ignore.append(file_path)


class LogObservers:
"""Class for keeping track of log observers across test modules"""

Expand Down

0 comments on commit 9426cad

Please sign in to comment.