Message258530
Hi, I'm maintainer of flexmock [1] and some users of my library have started hitting this bug [2] - when one tries to mock __new__ and then revert this mock at the end of testcase to the original one (either by deleting the mock __new__ or replacing mock __new__ by the old one), then one gets "TypeError: object() takes no parameters".
I think that solution proposed by Eryk is correct, but I don't have that much insight into Python internals to confirm that 100 %. I would appreciate this getting fixed. Thanks!
[1] https://github.com/bkabrda/flexmock
[2] https://github.com/bkabrda/flexmock/issues/13 |
|
Date |
User |
Action |
Args |
2016-01-18 17:11:09 | bkabrda | set | recipients:
+ bkabrda, twouters, benjamin.peterson, eryksun, uosiu |
2016-01-18 17:11:09 | bkabrda | set | messageid: <1453137069.2.0.831872701576.issue25731@psf.upfronthosting.co.za> |
2016-01-18 17:11:09 | bkabrda | link | issue25731 messages |
2016-01-18 17:11:08 | bkabrda | create | |
|