SIGN IN SIGN UP

bpo-36593: Fix isinstance check for Mock objects with spec executed under tracing (GH-12790)

In Python having a trace function in effect while mock is imported causes isinstance to be wrong for MagicMocks. This is due to the usage of super() in some class methods, as this sets the __class__ attribute. To avoid this, as a workaround, alias the usage of super .
X
Xtreak committed
830b43d03cc47a27a22a50d777f23c8e60820867
Parent: fde9b33
Committed by Pablo Galindo <Pablogsal@gmail.com> on 4/13/2019, 7:12:33 PM