From 54751af549bbf2b7c780461482bb93b3544377c3 Mon Sep 17 00:00:00 2001 From: Nikola Dipanov Date: Tue, 26 Mar 2013 01:20:24 +0100 Subject: 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. --- LICENSE | 1 + 1 file changed, 1 insertion(+) (limited to 'LICENSE') 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". -- cgit v1.2.1