derwiki-adroll / mock

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

patch.multiple does not work with string subclasses #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
patch.multiple accepts objects or strings (for finding the target by importing) 
as the first argument. If you want to patch on a string (or unicode) subclass 
then patch.multiple will assume the target should be imported.

Original issue reported on code.google.com by fuzzyman on 13 Jul 2011 at 12:27

GoogleCodeExporter commented 9 years ago

Original comment by fuzzyman on 13 Jul 2011 at 12:28

GoogleCodeExporter commented 9 years ago
A fix would be a string type check for str / unicode instead of an isinstance 
test.

Original comment by fuzzyman on 13 Jul 2011 at 12:30

GoogleCodeExporter commented 9 years ago

Original comment by fuzzyman on 23 Jul 2011 at 1:00