aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/upgrade.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/upgrade.py')
-rw-r--r--libbe/upgrade.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/libbe/upgrade.py b/libbe/upgrade.py
index 4123c72..785249d 100644
--- a/libbe/upgrade.py
+++ b/libbe/upgrade.py
@@ -20,11 +20,13 @@ Handle conversion between the various on-disk images.
import os, os.path
import sys
-import doctest
+import libbe
import encoding
import mapfile
import vcs
+if libbe.TESTING == True:
+ import doctest
# a list of all past versions
BUGDIR_DISK_VERSIONS = ["Bugs Everywhere Tree 1 0",
@@ -184,4 +186,5 @@ def upgrade(path, current_version,
break
i += 1
-suite = doctest.DocTestSuite()
+if libbe.TESTING == True:
+ suite = doctest.DocTestSuite()