2014-07-30 19:41:12 -03:00
|
|
|
import six
|
2014-04-04 16:38:09 -03:00
|
|
|
import pytest
|
|
|
|
|
2014-08-08 06:15:20 -03:00
|
|
|
collect_ignore = ["scrapy/stats.py", "scrapy/project.py"]
|
2014-04-04 16:55:35 -03:00
|
|
|
|
2014-07-30 19:41:12 -03:00
|
|
|
if six.PY3:
|
2015-02-09 10:28:22 +01:00
|
|
|
for line in open('tests/py3-ignores.txt'):
|
2015-02-10 10:34:44 +01:00
|
|
|
file_path = line.strip()
|
|
|
|
if len(file_path) > 0 and file_path[0] != '#':
|
|
|
|
collect_ignore.append(file_path)
|
2014-04-04 16:38:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture()
|
|
|
|
def chdir(tmpdir):
|
|
|
|
"""Change to pytest-provided temporary directory"""
|
|
|
|
tmpdir.chdir()
|