summaryrefslogtreecommitdiff
path: root/dev-python/yapsy/files/yapsy-1.11.223-python36-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/yapsy/files/yapsy-1.11.223-python36-tests.patch')
-rw-r--r--dev-python/yapsy/files/yapsy-1.11.223-python36-tests.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-python/yapsy/files/yapsy-1.11.223-python36-tests.patch b/dev-python/yapsy/files/yapsy-1.11.223-python36-tests.patch
new file mode 100644
index 000000000000..55b6b00873ba
--- /dev/null
+++ b/dev-python/yapsy/files/yapsy-1.11.223-python36-tests.patch
@@ -0,0 +1,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]