cpython/Lib/unittest/test/testmock
Xtreak 830b43d03c 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 .
2019-04-13 20:12:33 +01:00
..
__init__.py
__main__.py
support.py bpo-35512: Resolve string target to patch.dict decorator during function call GH#12000 2019-02-24 18:54:49 +00:00
testcallable.py bpo-35357: Add _mock_ prefix to name/parent/from_kall attributes of _Call/_MagicProxy. (#10873) 2018-12-04 09:08:45 +00:00
testhelpers.py bpo-21269: Provide args and kwargs attributes on mock call objects GH11807 2019-03-22 08:10:40 +00:00
testmagicmethods.py bpo-35022: unittest.mock.MagicMock now also supports __fspath__ (GH-9960) 2018-10-25 23:48:58 +02:00
testmock.py bpo-36593: Fix isinstance check for Mock objects with spec executed under tracing (GH-12790) 2019-04-13 20:12:33 +01:00
testpatch.py bpo-36366: Return None on stopping unstarted patch object (GH-12472) 2019-03-28 14:08:43 -07:00
testsealable.py
testsentinel.py
testwith.py Add test for double patching instance methods (#11085) 2018-12-12 07:56:35 +00:00