Change by Idan Weiss :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Idan Weiss :
To reproduce:
import unittest.mock
class LogicInBool:
def __bool__(self):
print("In Bool!")
return True
class SomeClass:
def __init__(self):
self.logic_in_bool = LogicInBool()
obj = SomeClass()
with unittest.mock.pa
Change by Idan Weiss :
--
components: Library (Lib)
nosy: idanweiss97
priority: normal
severity: normal
status: open
title: spec_arg's __bool__ is called while initializing NonCallableMock
type: behavior
versions: Python 3.10, Python 3.8, Pytho