This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Elena.Oat
Recipients Elena.Oat
Date 2019-11-03.02:30:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572748239.52.0.218774930946.issue38669@roundup.psfhosted.org>
In-reply-to
Content
When using patch.object with first argument as a string, e.g. 
´´patch.object('SomeClass', 'somemethod')´´ this raises ´´AttributeError: Something does not have the attribute 'do_something'´´. 
This should instead warn user that the correct type for the first argument is a class.
History
Date User Action Args
2019-11-03 02:30:39Elena.Oatsetrecipients: + Elena.Oat
2019-11-03 02:30:39Elena.Oatsetmessageid: <1572748239.52.0.218774930946.issue38669@roundup.psfhosted.org>
2019-11-03 02:30:39Elena.Oatlinkissue38669 messages
2019-11-03 02:30:39Elena.Oatcreate