Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Ignoring xlib/tx folder, depending on Twisted version.
- Loading branch information
Showing
with
4 additions
and
0 deletions.
-
+4
−0
conftest.py
|
|
@@ -1,6 +1,7 @@ |
|
|
import glob |
|
|
import six |
|
|
import pytest |
|
|
from twisted import version as twisted_version |
|
|
|
|
|
|
|
|
def _py_files(folder): |
|
@@ -21,6 +22,9 @@ def _py_files(folder): |
|
|
"scrapy/spider.py", |
|
|
] + _py_files("scrapy/contrib") + _py_files("scrapy/contrib_exp") |
|
|
|
|
|
if (twisted_version.major, twisted_version.minor, twisted_version.micro) >= (15, 5, 0): |
|
|
collect_ignore += _py_files("scrapy/xlib/tx") |
|
|
|
|
|
|
|
|
if six.PY3: |
|
|
for line in open('tests/py3-ignores.txt'): |
|
|