-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
cache: NFPlugin: keep known nodeids #6004
Conversation
Caveat: does not forget about old nodeids Fixes pytest-dev#5206
for item in items: | ||
if item.nodeid not in self.cached_nodeids: | ||
new_items[item.nodeid] = item | ||
self.cached_nodeids.extend(new_items) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With regard to dropping isinstance
here: see #3218 (comment)
Should either be kept if we have a test for this (testing/acceptance_test.py
worked for me), or have a test to cover it if necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
for item in items: | ||
if item.nodeid not in self.cached_nodeids: | ||
new_items[item.nodeid] = item | ||
self.cached_nodeids.extend(new_items) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough!
Caveat: does not forget about old nodeids
Fixes #5206