changeset 2580:c3741ed41050

don't test the docbook formatter if there is no 4suite installed
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 29 Jul 2007 17:59:48 +0200
parents 9f933413518b
children 67aeed6f77ce
files MoinMoin/formatter/_tests/test_formatter.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/_tests/test_formatter.py	Fri Jul 27 11:43:18 2007 +0200
+++ b/MoinMoin/formatter/_tests/test_formatter.py	Sun Jul 29 17:59:48 2007 +0200
@@ -87,6 +87,12 @@
                 assert id == origid
 
         formatters = wikiutil.getPlugins("formatter", self.request.cfg)
+        try:
+            from xml.dom import getDOMImplementation
+            dom = getDOMImplementation("4DOM")
+        except ImportError:
+            # if we don't have 4suite installed, the docbook formatter would just raise an exception
+            formatters.remove('text_docbook')
 
         testids = [
             r"tho/zeequeen&angu\za",