[New-bugs-announce] [issue45156] mock.seal has infinite recursion with int class attributes
David Mandelberg
report at bugs.python.org
Thu Sep 9 18:09:24 EDT 2021
New submission from David Mandelberg <david at mandelberg.org>:
The code below seems to have infinite recursion in the mock.seal call with python 3.9.2.
from unittest import mock
class Foo:
foo = 0
foo = mock.create_autospec(Foo)
mock.seal(foo)
----------
components: Library (Lib)
messages: 401525
nosy: dseomn
priority: normal
severity: normal
status: open
title: mock.seal has infinite recursion with int class attributes
type: crash
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45156>
_______________________________________
More information about the New-bugs-announce
mailing list