derwiki-adroll / mock

Automatically exported from code.google.com/p/mock
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Passing both spec=True and create=True to patch doesn't make sense #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you use the "create=True" argument to patch, then "spec=True" and 
"autospec=True" arguments don't make sense - because there is no object being 
replaced for patch to use as the spec. 

Currently when this happens, patch uses a sentinel as the spec which is really 
not right. patch should complain instead.

Original issue reported on code.google.com by fuzzyman on 23 Mar 2012 at 5:23

GoogleCodeExporter commented 9 years ago
This is fixed in trunk for 1.0.

Original comment by fuzzyman on 25 Mar 2012 at 3:33