`_collect_report_last_write` might be None, when `pytest_collection` was not called before. Not sure if this indicates another problem, but it can be reproduced with `testing/test_collection.py::TestCollector::()::test_getcustomfile_roundtrip`. Fixes https://github.com/pytest-dev/pytest/issues/4329
2 lines
65 B
ReStructuredText
2 lines
65 B
ReStructuredText
Fix TypeError in report_collect with _collect_report_last_write.
|