============================== test session starts =============================== platform linux -- Python 3.7.3, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 rootdir: /home/ralf/checkout/sourceforge/roundup.hg.tip, inifile: collected 22 items test/test_config.py ..............F.FF.... [100%] ==================================== FAILURES ==================================== ________________ TrackerConfig.testInvalidIndexerLanguage_w_empty ________________ self = def testInvalidIndexerLanguage_w_empty(self): """ make sure we have a reasonable error message if invalid indexer language is specified. This uses default search path for indexers. """ # SETUP: set indexer_language value to an invalid value. self.munge_configini(mods=[ ("indexer = ", ""), ("indexer_language = ", "NO_LANG") ]) config = configuration.CoreConfig() with self.assertRaises(configuration.OptionValueError) as cm: > config.load(self.dirname) E AssertionError: OptionValueError not raised test/test_config.py:388: AssertionError _______________ TrackerConfig.testInvalidIndexerLanguage_w_xapian ________________ self = def testInvalidIndexerLanguage_w_xapian(self): """ Use explicit xapian indexer. Verify exception is generated. """ print("Testing explicit xapian") self.munge_configini(mods=[ ("indexer = ", "xapian"), ("indexer_language = ", "NO_LANG") ]) with self.assertRaises(configuration.OptionValueError) as cm: > config.load(self.dirname) E AssertionError: OptionValueError not raised test/test_config.py:452: AssertionError ------------------------------ Captured stdout call ------------------------------ Testing explicit xapian ____________ TrackerConfig.testInvalidIndexerLanguage_xapian_missing _____________ self = def testInvalidIndexerLanguage_xapian_missing(self): """Using default path for indexers, make import of xapian fail and prevent exception from happening even though the indexer_language would be invalid for xapian. """ print("Testing xapian not loadable") # SETUP: same as testInvalidIndexerLanguage_w_empty self.munge_configini(mods=[ ("indexer = ", ""), ("indexer_language = ", "NO_LANG") ]) import sys # Set module to Non to prevent xapian from loading sys.modules['xapian'] = None config.load(self.dirname) # need to delete both to make python2 not error finding _xapian del(sys.modules['xapian']) > del(sys.modules['xapian._xapian']) E KeyError: 'xapian._xapian' test/test_config.py:417: KeyError ------------------------------ Captured stdout call ------------------------------ Testing xapian not loadable ====================== 3 failed, 19 passed in 13.48 seconds ======================