python-enchant/python-enchant-1.6.5-fix-tests-without-X.patch

18 lines
785 B
Diff
Raw Normal View History

2012-11-01 10:17:23 +00:00
diff -up pyenchant-1.6.5/enchant/tests.py.fix-tests-without-X pyenchant-1.6.5/enchant/tests.py
--- pyenchant-1.6.5/enchant/tests.py.fix-tests-without-X 2012-11-01 08:54:43.261512454 +0100
+++ pyenchant-1.6.5/enchant/tests.py 2012-11-01 09:01:12.184938020 +0100
@@ -427,11 +427,11 @@ class TestDocStrings(unittest.TestCase):
import enchant.checker.CmdLineChecker
try:
import enchant.checker.GtkSpellCheckerDialog
- except ImportError:
+ except (ImportError, RuntimeError):
pass
try:
import enchant.checker.wxSpellCheckerDialog
- except ImportError:
+ except (ImportError, RuntimeError):
pass
errors = []
# Naive recursion here would blow the stack, instead we