[issue31807] Using autospec=True conflicts with 'wraps'

2017-10-17 Thread John Villalovos
New submission from John Villalovos : If have autospec=True, then no ValueError is raised. If autospec=False or not defined, then the ValueError is raised. import sys from unittest import mock def wrapped_func(value): raise ValueError(value) @mock.patch('__main__.wrapped_func'

[issue31807] unitest.mock: Using autospec=True conflicts with 'wraps'

2017-10-17 Thread John Villalovos
Change by John Villalovos : -- title: Using autospec=True conflicts with 'wraps' -> unitest.mock: Using autospec=True conflicts with 'wraps' ___ Python tracker <https://