commit | 9933324688170a7037a764717b4e88adefaf4101 | [log] [tgz] |
---|---|---|
author | Tomas Krizek <tomas.krizek@mailbox.org> | Mon Feb 03 23:25:56 2020 +0100 |
committer | David Lord <davidism@gmail.com> | Tue Feb 04 08:37:58 2020 -0800 |
tree | 0ecc357476675e5e7fc015be4a9a300a3322f375 | |
parent | 3d5bfc6109bcc682f5266b118180e8b5fb775ae9 [diff] |
Use stricter getattr() checks for decorator functions Explicit checks for "is True" prevents unexpected behaviour with objects that are callable and have permissive gettatr(), such as Mock. Fixes #1145