[issue33120] infinite loop in inspect.unwrap(unittest.mock.call)

2018-07-15 Thread ppperry
Change by ppperry : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33120] infinite loop in inspect.unwrap(unittest.mock.call)

2018-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Peter, please include x.y.z version with reports (and upgrade first if possible ;-). This was apparently fixed in #25532 last year for current versions. With 3.6.4 and 3.7.0b2 I get Traceback (most recent call last): File

[issue33120] infinite loop in inspect.unwrap(unittest.mock.call)

2018-03-23 Thread ppperry
ppperry added the comment: This is a dupe of https://bugs.python.org/issue25532 -- nosy: +ppperry ___ Python tracker ___

[issue33120] infinite loop in inspect.unwrap(unittest.mock.call)

2018-03-22 Thread Peter
Peter added the comment: I see two options to fix it: 1) add recursion depth check to inspect.wrap 2) define __wrapped__ on mock._Call so it won't go into recursion. -- ___ Python tracker

[issue33120] infinite loop in inspect.unwrap(unittest.mock.call)

2018-03-22 Thread Peter
New submission from Peter : 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