diff test/test_config.py @ 6371:5c1db5d4baed

Fix failing xapian test
author Ralf Schlatterbeck <rsc@runtux.com>
date Thu, 01 Apr 2021 08:58:51 +0200
parents e3ed3ad9e795
children 8687c096a945
line wrap: on
line diff
--- a/test/test_config.py	Wed Mar 31 18:56:08 2021 -0400
+++ b/test/test_config.py	Thu Apr 01 08:58:51 2021 +0200
@@ -449,7 +449,7 @@
 
         # need to delete both to make python2 not error finding _xapian
         del(sys.modules['xapian'])
-        if xapian._xapian in sys.modules:
+        if 'xapian._xapian' in sys.modules:
             del(sys.modules['xapian._xapian'])
 
         self.assertEqual(config['INDEXER_LANGUAGE'], 'NO_LANG')

Roundup Issue Tracker: http://roundup-tracker.org/