Skip to content

Commit 7dfa979

Browse files
sibiryakovdangra
authored andcommitted
Ignoring xlib/tx folder, depending on Twisted version.
1 parent 6e42f0b commit 7dfa979

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import glob
22
import six
33
import pytest
4+
from twisted import version as twisted_version
45

56

67
def _py_files(folder):
@@ -21,6 +22,9 @@ def _py_files(folder):
2122
"scrapy/spider.py",
2223
] + _py_files("scrapy/contrib") + _py_files("scrapy/contrib_exp")
2324

25+
if (twisted_version.major, twisted_version.minor, twisted_version.micro) >= (15, 5, 0):
26+
collect_ignore += _py_files("scrapy/xlib/tx")
27+
2428

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

0 commit comments

Comments
 (0)