Runaway memory consumption when mock.call in namespace · Issue #1217 · pytest-dev/pytest (original) (raw)

Consider this simple test case:

$ cat > test_foo.py
from unittest.mock import call

Then run py.test --doctest-modules and py.test will consume all memory until killed by the OS, but only on Python 3.5. Not importing call into the namespace works around the issue.

This issue was first encountered in pmxbot 42.