blob: 55b6b00873ba489c791475ac2cb4d65477ff994a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
From b79ab28e430995cd64923bb93474b214bc38529b Mon Sep 17 00:00:00 2001
From: Thibauld Nion <thibauld@tibonihoo.net>
Date: Sun, 29 Jan 2017 18:31:06 +0100
Subject: [PATCH] fix error on python 3.6
---
test/test_ErrorInPlugin.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/test_ErrorInPlugin.py b/test/test_ErrorInPlugin.py
index 171ce5d..9f22dcf 100644
--- a/test/test_ErrorInPlugin.py
+++ b/test/test_ErrorInPlugin.py
@@ -50,7 +50,7 @@ def errorMock(*args,**kwargs):
self.assertEqual(len(callback_infos),1)
self.assertTrue(isinstance(callback_infos[0].error,tuple))
self.assertEqual(loadedPlugins[0],callback_infos[0])
- self.assertEqual(callback_infos[0].error[0],ImportError)
+ self.assertTrue(issubclass(callback_infos[0].error[0],ImportError))
# check that the getCategories works
self.assertEqual(len(spm.getCategories()),1)
sole_category = spm.getCategories()[0]
|