Skip to content

Commit

Permalink
Ignoring xlib/tx folder, depending on Twisted version.
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiryakov authored and dangra committed Dec 30, 2015
1 parent 6e42f0b commit 7dfa979
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conftest.py
@@ -1,6 +1,7 @@
import glob
import six
import pytest
from twisted import version as twisted_version


def _py_files(folder):
Expand All @@ -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'):
Expand Down

0 comments on commit 7dfa979

Please sign in to comment.