mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-22 20:24:14 +00:00
py.test replaces AssertionError exception with its own subclass in an import hook. For some reason when top-level shortcuts were added "except AssertionError" in contracts.__init__ meant "except py.test AssertionError" while scrapy.exceptions.ContractFail was still a subclass of a builtin AssertionError, so Contracts reported errors instead of failures and this made tests in test_contracts.py fail. For now - just disable fancy py.test asserts.
6 lines
115 B
INI
6 lines
115 B
INI
|
|
[pytest]
|
|
usefixtures = chdir setlog
|
|
python_files=test_*.py __init__.py
|
|
addopts = --doctest-modules --assert=plain
|