mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-22 23:24:11 +00:00
This allows to remove `get_testlog` helper, `flushLoggedErrors` from twisted.trial.unittest.TestCase and Twisted log observers created for each test on conftest.py.
17 lines
391 B
Python
17 lines
391 B
Python
import six
|
|
import pytest
|
|
|
|
collect_ignore = ["scrapy/stats.py", "scrapy/project.py"]
|
|
|
|
if six.PY3:
|
|
for line in open('tests/py3-ignores.txt'):
|
|
file_path = line.strip()
|
|
if len(file_path) > 0 and file_path[0] != '#':
|
|
collect_ignore.append(file_path)
|
|
|
|
|
|
@pytest.fixture()
|
|
def chdir(tmpdir):
|
|
"""Change to pytest-provided temporary directory"""
|
|
tmpdir.chdir()
|