-
Notifications
You must be signed in to change notification settings - Fork 216
Prevent unimported warnings @ pytest-xdist workers #695
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -450,6 +450,7 @@ def start(self): | |||||||||
data_suffix=_data_suffix(f'w{self.nodeid}'), | ||||||||||
config_file=self.cov_config, | ||||||||||
) | ||||||||||
self.cov._warn_unimported_source = False | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should probably include all those other hacks, after all:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps, but without a test triggering these warnings you will never really know what effect this will have. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I only know that only one has a visible effect of suppressing a false negative in ansible-pylibssh. I've been trying to think of a reliable test but no luck so far. |
||||||||||
self.cov.start() | ||||||||||
self.set_env() | ||||||||||
super().start() | ||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.