15
0
forked from pool/python-Yapsy
Files
python-Yapsy/fix-error-plugin-test.patch
Todd R 580359ae27 Accepting request 512685 from home:sebix:branches:devel:languages:python
- convert to singlespec
- run tests during build
 * add fix-file-location-test.patch to fix a hardcoded path in the tests
 * add fix-error-plugin-test.patch to fix test on 3.6
- add documentation in subpackage python-Yapsy-doc

OBS-URL: https://build.opensuse.org/request/show/512685
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Yapsy?expand=0&rev=4
2017-08-01 16:02:07 +00:00

12 lines
574 B
Diff

--- test/test_ErrorInPlugin.py 2015-03-28 22:00:14.000000000 +0100
+++ test/test_ErrorInPlugin.py 2017-07-22 21:35:03.391697688 +0200
@@ -50,7 +50,7 @@
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]