aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/mapfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/mapfile.py')
-rw-r--r--libbe/mapfile.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbe/mapfile.py b/libbe/mapfile.py
index 062606b..8e1e279 100644
--- a/libbe/mapfile.py
+++ b/libbe/mapfile.py
@@ -25,7 +25,10 @@ independent/conflicting changes.
import errno
import os.path
import yaml
-import doctest
+
+import libbe
+if libbe.TESTING == True:
+ import doctest
class IllegalKey(Exception):
@@ -119,4 +122,5 @@ def map_load(vcs, path, allow_no_vcs=False):
binary=True)
return parse(contents)
-suite = doctest.DocTestSuite()
+if libbe.TESTING == True:
+ suite = doctest.DocTestSuite()