aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/comment.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/comment.py')
-rw-r--r--libbe/comment.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/libbe/comment.py b/libbe/comment.py
index c5f1cc9..32536d4 100644
--- a/libbe/comment.py
+++ b/libbe/comment.py
@@ -32,8 +32,8 @@ try: # import core module, Python >= 2.5
except ImportError: # look for non-core module
from elementtree import ElementTree
import xml.sax.saxutils
-import doctest
+import libbe
from beuuid import uuid_gen
from properties import Property, doc_property, local_property, \
defaulting_property, checked_property, cached_property, \
@@ -42,6 +42,8 @@ import settings_object
import mapfile
from tree import Tree
import utility
+if libbe.TESTING == True:
+ import doctest
class InvalidShortname(KeyError):
@@ -796,4 +798,5 @@ class CommentCompoundComparator (object):
cmp_full = CommentCompoundComparator()
-suite = doctest.DocTestSuite()
+if libbe.TESTING == True:
+ suite = doctest.DocTestSuite()