Skip to content

Runaway memory consumption when mock.call in namespace #1217

@jaraco

Description

@jaraco

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions