-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Test runner hangs during collection with doctest-modules and mock.call in module #2188
Comments
this is a cpython bug ^^ |
Could you provide more information @RonnyPfannschmidt? |
@nicoddemus mock object are a easily the cause of endless recursions and errors, py.test had to add special support to avoid stumbling over those magical objects, i am certain the stdlib didn't brother to get things right |
I see thanks, but is that conclusion is a general feeling or did you investigate the report by @jaraco and reached that conclusion? |
@nicoddemus we hit similar issues with some prior bugs related to py.tests own collection |
I see thanks @RonnyPfannschmidt Hmm |
I don't know why I didn't think to try this before - when running |
Which has been reported here. |
Ugh, and I reported this previously in #1217. I thought it seemed familiar, and I did search for it. |
Thanks @jaraco! @RonnyPfannschmidt was right after all! 😄 |
Consider this test:
The test will hang for a long time and eventually exit. It seems the doctest logic is attempting to test the
call
function and causes trouble during collection.The text was updated successfully, but these errors were encountered: