summaryrefslogtreecommitdiff
path: root/src/mailman/testing/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/testing/helpers.py')
-rw-r--r--src/mailman/testing/helpers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py
index 8bb8e8bdd..f3f6b11aa 100644
--- a/src/mailman/testing/helpers.py
+++ b/src/mailman/testing/helpers.py
@@ -151,7 +151,9 @@ class TestableMaster(Master):
until the pass condition is set.
:type start_check: Callable taking no arguments, returning nothing.
"""
- super().__init__(restartable=False, config_file=config.filename)
+ super().__init__(
+ restartable=False,
+ config_file=os.environ.get('MAILMAN_CONFIG_FILE', config.filename))
self.start_check = start_check
self.event = threading.Event()
self.thread = threading.Thread(target=self.loop)