diff --git a/product/ERP5Type/tests/custom_zodb.py b/product/ERP5Type/tests/custom_zodb.py
index 3d10ebdf2e100fb93238070dafbc4d1dc2b44b50..18b248d274db994e59759cf0750a2faa3116ac42 100644
--- a/product/ERP5Type/tests/custom_zodb.py
+++ b/product/ERP5Type/tests/custom_zodb.py
@@ -6,7 +6,7 @@ import ZODB
 from ZODB.DemoStorage import DemoStorage
 from ZODB.FileStorage import FileStorage
 from Products.ERP5Type.tests.utils import getMySQLArguments
-from runUnitTest import instance_home, static_dir_list
+from Products.ERP5Type.tests.runUnitTest import instance_home, static_dir_list
 
 def _print(message):
   sys.stderr.write(message + "\n")
diff --git a/product/ERP5Type/tests/runUnitTest.py b/product/ERP5Type/tests/runUnitTest.py
index 9481d9cf026dd4018c5d8baff46eadd7dbccd512..56e2f14019d2ef63a376275740ec94f898f6e5bd 100755
--- a/product/ERP5Type/tests/runUnitTest.py
+++ b/product/ERP5Type/tests/runUnitTest.py
@@ -106,6 +106,13 @@ Options:
 
 """
 
+# This script is usually executed directly, and is also imported using its full
+# doted name from other locations, such as custom_zodb.py . To prevent
+# reloading this module in such case, we store it in sys.modules under that
+# name.
+sys.modules['Products.ERP5Type.tests.runUnitTest'] = sys.modules[__name__]
+
+
 static_dir_list = 'Constraint', 'Document', 'Extensions', 'PropertySheet'
 
 def getUnitTestFile():