-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--newest-first forgets about existing nodeids when collection is filtered #5206
Labels
Comments
While at it |
blueyed
added a commit
to blueyed/pytest
that referenced
this issue
Oct 19, 2019
Caveat: does not forget about old nodeids Fixes pytest-dev#5206
blueyed
added a commit
to blueyed/pytest
that referenced
this issue
Oct 19, 2019
Caveat: does not forget about old nodeids Fixes pytest-dev#5206
This was referenced Oct 19, 2019
phloose
pushed a commit
to phloose/pytest
that referenced
this issue
Oct 23, 2019
Caveat: does not forget about old nodeids Fixes pytest-dev#5206
bors bot
referenced
this issue
in duckinator/bork
Oct 25, 2019
68: Update pytest to 5.2.2 r=duckinator a=pyup-bot This PR updates [pytest](https://pypi.org/project/pytest) from **5.2.1** to **5.2.2**. <details> <summary>Changelog</summary> ### 5.2.2 ``` ========================= Bug Fixes --------- - `5206 <https://github.com/pytest-dev/pytest/issues/5206>`_: Fix ``--nf`` to not forget about known nodeids with partial test selection. - `5906 <https://github.com/pytest-dev/pytest/issues/5906>`_: Fix crash with ``KeyboardInterrupt`` during ``--setup-show``. - `5946 <https://github.com/pytest-dev/pytest/issues/5946>`_: Fixed issue when parametrizing fixtures with numpy arrays (and possibly other sequence-like types). - `6044 <https://github.com/pytest-dev/pytest/issues/6044>`_: Properly ignore ``FileNotFoundError`` exceptions when trying to remove old temporary directories, for instance when multiple processes try to remove the same directory (common with ``pytest-xdist`` for example). ``` </details> <details> <summary>Links</summary> - PyPI: https://pypi.org/project/pytest - Changelog: https://pyup.io/changelogs/pytest/ - Homepage: https://docs.pytest.org/en/latest/ </details> Co-authored-by: pyup-bot <[email protected]>
bors bot
referenced
this issue
in rehandalal/therapist
Oct 29, 2019
98: Update pytest to 5.2.2 r=rehandalal a=pyup-bot This PR updates [pytest](https://pypi.org/project/pytest) from **5.2.1** to **5.2.2**. <details> <summary>Changelog</summary> ### 5.2.2 ``` ========================= Bug Fixes --------- - `5206 <https://github.com/pytest-dev/pytest/issues/5206>`_: Fix ``--nf`` to not forget about known nodeids with partial test selection. - `5906 <https://github.com/pytest-dev/pytest/issues/5906>`_: Fix crash with ``KeyboardInterrupt`` during ``--setup-show``. - `5946 <https://github.com/pytest-dev/pytest/issues/5946>`_: Fixed issue when parametrizing fixtures with numpy arrays (and possibly other sequence-like types). - `6044 <https://github.com/pytest-dev/pytest/issues/6044>`_: Properly ignore ``FileNotFoundError`` exceptions when trying to remove old temporary directories, for instance when multiple processes try to remove the same directory (common with ``pytest-xdist`` for example). ``` </details> <details> <summary>Links</summary> - PyPI: https://pypi.org/project/pytest - Changelog: https://pyup.io/changelogs/pytest/ - Homepage: https://docs.pytest.org/en/latest/ </details> Co-authored-by: pyup-bot <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
--newest-first
(added via #3034) forgets about cached nodeids when e.g. run with some file as argument.Code:
pytest/src/_pytest/cacheprovider.py
Lines 269 to 290 in 3f5622c
I think it should not forget about those - this makes it likely consider all others as new when running without args then again.
It should probably just add to the known items, and have a mechanism to garbage-collect them from time to time, but that is not really critical I suppose.
/cc @feuillemorte
The text was updated successfully, but these errors were encountered: