test_ok2/testing
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 Remove redundant Python 2.7 code 2020-10-19 10:47:35 +03:00
example_scripts py36+: com2ann 2020-10-05 18:33:17 -07:00
examples pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
freeze testing: fix some docstring issues 2020-08-03 10:10:43 +03:00
io Merge pull request #7481 from bluetech/tw-unicode-escape 2020-07-11 16:01:45 -03:00
logging py36+: com2ann 2020-10-05 18:33:17 -07:00
plugins_integration build(deps): bump django in /testing/plugins_integration 2020-10-12 12:39:31 +00:00
python Drop support for EOL Python 3.5 2020-10-19 10:02:36 +03:00
acceptance_test.py New pytester fixture (#7854) 2020-10-12 12:13:06 -03:00
conftest.py py36+: remove requires_ordered_markup 2020-10-02 15:06:59 -07:00
deprecated_test.py Add alias clarification to deprecation warning (#7829) 2020-10-06 11:48:34 -03:00
test_argcomplete.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_assertion.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_assertrewrite.py Update mypy 0.782 -> 0.790 2020-10-17 19:25:45 +03:00
test_cacheprovider.py cacheprovider: fix some files in packages getting lost from --lf 2020-10-19 19:02:43 +03:00
test_capture.py Update mypy 0.782 -> 0.790 2020-10-17 19:25:45 +03:00
test_collection.py py36+: remove rexport of Path and PurePath 2020-10-03 12:16:52 -07:00
test_compat.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_config.py Update tests to cover explicit None and "string" as addini() types 2020-10-07 17:56:54 -04:00
test_conftest.py py36+: remove rexport of Path and PurePath 2020-10-03 12:16:52 -07:00
test_debugging.py Update mypy 0.782 -> 0.790 2020-10-17 19:25:45 +03:00
test_doctest.py Update mypy 0.782 -> 0.790 2020-10-17 19:25:45 +03:00
test_entry_points.py Replace importlib_metadata with importlib.metadata on Python 3.8+ 2019-07-04 15:00:10 +02:00
test_error_diffs.py assertion: improve diff output of recursive dataclass/attrs 2020-07-08 19:04:56 +03:00
test_faulthandler.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_findpaths.py py36+: remove rexport of Path and PurePath 2020-10-03 12:16:52 -07:00
test_helpconfig.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_junitxml.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_link_resolve.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_main.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_mark.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_mark_expression.py mark/expression: prevent creation of illegal Python identifiers 2020-06-05 15:57:48 +03:00
test_meta.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_monkeypatch.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_nodes.py Remove no longer needed `noqa: F821` uses 2020-07-10 13:08:56 +03:00
test_nose.py Node.location: handle str with _node_location_to_relpath 2020-01-23 10:45:31 +01:00
test_parseopt.py testing: improve bash check 2020-07-21 21:21:09 +03:00
test_pastebin.py Update mypy 0.782 -> 0.790 2020-10-17 19:25:45 +03:00
test_pathlib.py py36+: remove rexport of Path and PurePath 2020-10-03 12:16:52 -07:00
test_pluginmanager.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_pytester.py New pytester fixture (#7854) 2020-10-12 12:13:06 -03:00
test_recwarn.py recwarn: improve return type annotation of non-contextmanager pytest.warns 2020-06-25 14:30:42 +03:00
test_reports.py Drop support for EOL Python 3.5 2020-10-19 10:02:36 +03:00
test_runner.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_runner_xunit.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_session.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_setuponly.py testing: fix some docstring issues 2020-08-03 10:10:43 +03:00
test_setupplan.py testing: fix some docstring issues 2020-08-03 10:10:43 +03:00
test_skipping.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_stepwise.py testing: fix flaky tests on pypy3 due to resource warnings in stderr (#7405) 2020-06-26 09:50:19 -03:00
test_store.py Remove no longer needed `noqa: F821` uses 2020-07-10 13:08:56 +03:00
test_terminal.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_tmpdir.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_unittest.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_warning_types.py Make pytest warnings show as from 'pytest' module instead of '_pytest.warning_types' 2019-06-15 11:48:34 -03:00
test_warnings.py py36+: com2ann 2020-10-05 18:33:17 -07:00
typing_checks.py Fix typing of params ids callable form 2020-07-14 14:53:42 +03:00