[New-bugs-announce] [issue33120] infinite loop in inspect.unwrap(unittest.mock.call)

Peter report at bugs.python.org
Thu Mar 22 09:36:41 EDT 2018


New submission from Peter <poslano at gmail.com>:

The following module will eat all available RAM if executed:

import inspect
import unittest.mock
print(inspect.unwrap(unittest.mock.call))

inspect.unwrap has loop protection against functions that wrap themselves, but unittest.mock.call creates new object on demand.

----------
components: Library (Lib)
messages: 314254
nosy: peterdemin
priority: normal
severity: normal
status: open
title: infinite loop in inspect.unwrap(unittest.mock.call)
type: crash
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33120>
_______________________________________


More information about the New-bugs-announce mailing list