Closed GoogleCodeExporter closed 9 years ago
The problem I have with this is that the "spec" situation with mock is already
confusing. There are currently three "spec" variants (none of which do quite
what you want): spec, spec_set and create_autospec.
I'm not wild about the idea of adding a fourth. (Note that a normal spec
doesn't check the number of arguments to methods - it's only create_autospec
that does that.)
Original comment by fuzzyman
on 3 Mar 2012 at 11:22
Original comment by fuzzyman
on 4 Mar 2012 at 12:01
So I don't want to add another constructor parameter. How about I make
__class__ assignable, so at least it allows you to solve your isinstance
problem?
Original comment by fuzzyman
on 14 Mar 2012 at 6:10
That would be perfect. I mean, first time I wanted this, I tried exactly this
solution :)
Original comment by k...@k-bx.com
on 14 Mar 2012 at 10:02
This is now implemented in the mercurial repository, and the standard library
version.
Original comment by fuzzyman
on 14 Mar 2012 at 8:36
Original issue reported on code.google.com by
k...@k-bx.com
on 3 Mar 2012 at 1:44