derwiki-adroll / mock

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

patch does the import at decorator time not at call time #110

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It is possible for patch to restore the wrong object because it fetches it at 
decoration time and not at call time.

Original issue reported on code.google.com by fuzzyman on 26 Jul 2011 at 10:28

GoogleCodeExporter commented 9 years ago

Original comment by fuzzyman on 26 Jul 2011 at 10:33

GoogleCodeExporter commented 9 years ago
This change would mean that errors in patching (e.g. patching a module that 
doesn't exist) would be raised at call time rather than at patch creation time.

Original comment by fuzzyman on 27 Jul 2011 at 10:21

GoogleCodeExporter commented 9 years ago

Original comment by fuzzyman on 4 Aug 2011 at 12:32

GoogleCodeExporter commented 9 years ago

Original comment by fuzzyman on 10 Oct 2011 at 12:21