forked from pool/python-Yapsy
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
This commit is contained in:
11
fix-error-plugin-test.patch
Normal file
11
fix-error-plugin-test.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- 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]
|
||||
Reference in New Issue
Block a user