[New-bugs-announce] [issue18622] reset_mock on mock created by mock_open causes infinite recursion

Michael Foord report at bugs.python.org
Thu Aug 1 23:04:17 CEST 2013


New submission from Michael Foord:

As reported at: http://code.google.com/p/mock/issues/detail?id=209

>>> from unittest import mock
[107971 refs]
>>> mock.mock_open
<function mock_open at 0x10cff9d20>
[107974 refs]
>>> a = mock.mock_open()
[109965 refs]
>>> a.reset_mock()
...

----------
assignee: michael.foord
components: Library (Lib)
keywords: easy
messages: 194119
nosy: michael.foord
priority: normal
severity: normal
stage: needs patch
status: open
title: reset_mock on mock created by mock_open causes infinite recursion
type: behavior
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18622>
_______________________________________


More information about the New-bugs-announce mailing list