With the mocks, passing (spec=int, spec_set=True) will cause int to be used as
the spec_set.
With patch, spec_set=True will override spec=int. "spec_set=True" has different
behaviour with patch *anyway* (it means use the object we are replacing as the
spec), so passing both spec and spec_set should be disallowed (raise an
exception).
Original issue reported on code.google.com by fuzzyman on 25 Mar 2012 at 12:40
Original issue reported on code.google.com by
fuzzyman
on 25 Mar 2012 at 12:40