diff options
author | Nikola Dipanov <nikola.djipanov@gmail.com> | 2013-03-26 01:20:24 +0100 |
---|---|---|
committer | Nikola Dipanov <ndipanov@redhat.com> | 2013-03-26 15:41:52 +0100 |
commit | 54751af549bbf2b7c780461482bb93b3544377c3 (patch) | |
tree | baca4dc8fe66d994e845b6883c6656830ac86235 /LICENSE | |
parent | 877058e8dc59f95bcb7d1021db52ad8e0c8d9704 (diff) | |
download | testtools-54751af549bbf2b7c780461482bb93b3544377c3.tar.gz |
Fix assertRaises when the exception has a metaclass
Due to not taking into account that the type of the class can be a
subclass of type (which is the case when using metaclasses),
assertRaises would report a false positive in case an exception that was
expected had a custom metaclass.
This patch introduces a more robust checking if a given object is a
class or an instance of one, and adds a test case, to make sure
exceptions with custom metaclasses don't break assertRaises.
Diffstat (limited to 'LICENSE')
-rw-r--r-- | LICENSE | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -17,6 +17,7 @@ The testtools authors are: * Gavin Panella * Martin Pool * Vincent Ladeuil + * Nikola Đipanov and are collectively referred to as "testtools developers". |