test_ok2/src/_pytest
Ran Benita afaabdda8c cacheprovider: fix some files in packages getting lost from --lf
--lf has an optimization where it skips collecting Modules (python
files) which don't contain failing tests. The optimization works by
getting the paths of all cached failed tests and skipping the collection
of Modules whose path is not included in that list.

In pytest, Package nodes are Module nodes with the fspath being the file
`<package dir>/__init__.py`. Since it's a Module the logic above
triggered for it, and because it's an `__init__.py` file which is
unlikely to have any failing tests in it, it is skipped, which causes
its entire directory to be skipped, including any Modules inside it with
failing tests.

Fix by special-casing Packages to never filter. This means entire
Packages are never filtered, the Modules themselves are always checked.
It is reasonable to consider an optimization which does filter entire
packages bases on parent paths etc. but this wouldn't actually save any
real work so is really not worth it.
2020-10-19 19:02:43 +03:00
..
_code py36+: com2ann 2020-10-05 18:33:17 -07:00
_io py36+: com2ann 2020-10-05 18:33:17 -07:00
assertion Drop support for EOL Python 3.5 2020-10-19 10:02:36 +03:00
config Fix typing related to iniconfig 2020-10-17 19:25:45 +03:00
mark py36+: com2ann 2020-10-05 18:33:17 -07:00
__init__.py pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
_argcomplete.py py36+: com2ann 2020-10-05 18:33:17 -07:00
cacheprovider.py cacheprovider: fix some files in packages getting lost from --lf 2020-10-19 19:02:43 +03:00
capture.py Drop support for EOL Python 3.5 2020-10-19 10:02:36 +03:00
compat.py Update mypy 0.782 -> 0.790 2020-10-17 19:25:45 +03:00
debugging.py py36+: com2ann 2020-10-05 18:33:17 -07:00
deprecated.py Add alias clarification to deprecation warning (#7829) 2020-10-06 11:48:34 -03:00
doctest.py py36+: com2ann 2020-10-05 18:33:17 -07:00
faulthandler.py Integrate warnings filtering directly into Config (#7700) 2020-09-04 11:57:15 -03:00
fixtures.py Merge pull request #7863 from asottile/py36_order_preserving_dict 2020-10-06 08:35:38 -07:00
freeze_support.py Format docstrings in a consistent style 2020-08-01 17:14:37 +03:00
helpconfig.py py36+: com2ann 2020-10-05 18:33:17 -07:00
hookspec.py py36+: remove TYPE_CHECKING from _pytest.compat 2020-10-02 15:03:24 -07:00
junitxml.py py36+: com2ann 2020-10-05 18:33:17 -07:00
logging.py py36+: com2ann 2020-10-05 18:33:17 -07:00
main.py py36+: com2ann 2020-10-05 18:33:17 -07:00
monkeypatch.py py36+: com2ann 2020-10-05 18:33:17 -07:00
nodes.py py36+: com2ann 2020-10-05 18:33:17 -07:00
nose.py Format docstrings in a consistent style 2020-08-01 17:14:37 +03:00
outcomes.py py36+: com2ann 2020-10-05 18:33:17 -07:00
pastebin.py py36+: com2ann 2020-10-05 18:33:17 -07:00
pathlib.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
py.typed Publish our types 2020-07-04 13:18:15 +03:00
pytester.py Update mypy 0.782 -> 0.790 2020-10-17 19:25:45 +03:00
python.py py36+: com2ann 2020-10-05 18:33:17 -07:00
python_api.py Drop support for EOL Python 3.5 2020-10-19 10:02:36 +03:00
recwarn.py py36+: com2ann 2020-10-05 18:33:17 -07:00
reports.py py36+: com2ann 2020-10-05 18:33:17 -07:00
runner.py runner: combine a sort+reverse to a sort(reverse=True) 2020-10-19 00:02:01 +03:00
setuponly.py typing: set disallow_any_generics 2020-08-01 20:39:15 +03:00
setupplan.py typing: set disallow_any_generics 2020-08-01 20:39:15 +03:00
skipping.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
stepwise.py py36+: com2ann 2020-10-05 18:33:17 -07:00
store.py py36+: com2ann 2020-10-05 18:33:17 -07:00
terminal.py Fixed formatting 2020-10-07 22:25:27 -07:00
timing.py Format docstrings in a consistent style 2020-08-01 17:14:37 +03:00
tmpdir.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
unittest.py py36+: com2ann 2020-10-05 18:33:17 -07:00
warning_types.py New pytester fixture (#7854) 2020-10-12 12:13:06 -03:00
warnings.py py36+: remove TYPE_CHECKING from _pytest.compat 2020-10-02 15:03:24 -07:00