-
Notifications
You must be signed in to change notification settings - Fork 8
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
Modules, functions and classes crashing or hanging to be added to the blacklist. #12
Comments
the following modules and functions hang pytest process:
|
|
@ kr1 I don't think we can really protect from modules that fiddle with the infrastructure that we use, mainly module load and introspection, as we would need to save and restore also all nested functions. The only safe strategies are:
Good catch! I added it to the blacklist for now. |
Blacklisted many stdlib objects with broken Move issue to next release. |
pytest-nodev have a
module blacklist
and anobject blacklist
that is update with every release.If the enabling pytest-nodev crashes of hangs the pytest process you have probably found a problem object that needs to be added to the blacklist. In order to identify the problem object remove all non essential options from the command line, in particular
--candidates-fail
and-n
, and add-vv
instead. Any test line that doesn't end withxfail
is a good candidate, especially if it is the last line before the summary or the crash report. For example the following command hangs:and this is a hint that
itertools:cycle
causes the hang.Comment here to submit objects that crash or hang during the
candidate
fixture for review, be sure to mention the the full object name, usually the string in square brackets.The text was updated successfully, but these errors were encountered: