summaryrefslogtreecommitdiff
path: root/src/mailman/app/docs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/app/docs')
-rw-r--r--src/mailman/app/docs/hooks.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mailman/app/docs/hooks.rst b/src/mailman/app/docs/hooks.rst
index ba9bb249e..07d0ec33c 100644
--- a/src/mailman/app/docs/hooks.rst
+++ b/src/mailman/app/docs/hooks.rst
@@ -53,8 +53,11 @@ script that will produce no output to force the hooks to run.
>>> from mailman.testing.layers import ConfigLayer
>>> def call():
... exe = os.path.join(os.path.dirname(sys.executable), 'mailman')
- ... env = dict(MAILMAN_CONFIG_FILE=config_path,
- ... PYTHONPATH=config_directory)
+ ... env = os.environ.copy()
+ ... env.update(
+ ... MAILMAN_CONFIG_FILE=config_path,
+ ... PYTHONPATH=config_directory,
+ ... )
... test_cfg = os.environ.get('MAILMAN_EXTRA_TESTING_CFG')
... if test_cfg is not None:
... env['MAILMAN_EXTRA_TESTING_CFG'] = test_cfg