summaryrefslogtreecommitdiff
path: root/LICENSE
diff options
context:
space:
mode:
authorNikola Dipanov <nikola.djipanov@gmail.com>2013-03-26 01:20:24 +0100
committerNikola Dipanov <ndipanov@redhat.com>2013-03-26 15:41:52 +0100
commit54751af549bbf2b7c780461482bb93b3544377c3 (patch)
treebaca4dc8fe66d994e845b6883c6656830ac86235 /LICENSE
parent877058e8dc59f95bcb7d1021db52ad8e0c8d9704 (diff)
downloadtesttools-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--LICENSE1
1 files changed, 1 insertions, 0 deletions
diff --git a/LICENSE b/LICENSE
index d59dc7c..21010cc 100644
--- a/LICENSE
+++ b/LICENSE
@@ -17,6 +17,7 @@ The testtools authors are:
* Gavin Panella
* Martin Pool
* Vincent Ladeuil
+ * Nikola Đipanov
and are collectively referred to as "testtools developers".