forked from pool/python-Yapsy
- 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
12 lines
574 B
Diff
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]
|