You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Twisted's version, you get AttributeError if you attempt to patch a non-existent attribute.
I like that because tests blow up if I mistype the attribute name or if someone else changes the attribute name:
Either an option or a default on a differently named object (e.g. SafeMonkeyPatcher). Can't change default on current version as that will
break existing code.
In Twisted's version, you get AttributeError if you attempt to patch a
non-existent attribute.
I like that because tests blow up if I mistype the attribute name or if
someone else changes the attribute name:
In Twisted's version, you get
AttributeError
if you attempt to patch a non-existent attribute.I like that because tests blow up if I mistype the attribute name or if someone else changes the attribute name:
That's one of the reasons I use patch in Flocker, even on non-global objects.
The testtools version silently ignores these errors:
Does anyone agree that "check attribute exists" should at least be an option?
The text was updated successfully, but these errors were encountered: