diff options
| author | Barry Warsaw | 2014-10-13 17:13:38 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2014-10-13 17:13:38 -0400 |
| commit | d20af910b287f8a7f13b51ee07c89e79af35f8a4 (patch) | |
| tree | 6dc0149c12e6c7b563fb3c9d0e95b30bdce74d22 /src | |
| parent | db5bb831fc2ab96aea515584429578c51f239b62 (diff) | |
| download | mailman-d20af910b287f8a7f13b51ee07c89e79af35f8a4.tar.gz mailman-d20af910b287f8a7f13b51ee07c89e79af35f8a4.tar.zst mailman-d20af910b287f8a7f13b51ee07c89e79af35f8a4.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/testing/layers.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mailman/testing/layers.py b/src/mailman/testing/layers.py index 38aa3907f..4a9841fc2 100644 --- a/src/mailman/testing/layers.py +++ b/src/mailman/testing/layers.py @@ -48,7 +48,6 @@ import tempfile from lazr.config import as_boolean from pkg_resources import resource_string from textwrap import dedent -from zope import event from zope.component import getUtility from mailman.config import config @@ -99,9 +98,7 @@ class ConfigLayer(MockAndMonkeyLayer): # Set up the basic configuration stuff. Turn off path creation until # we've pushed the testing config. config.create_paths = False - if not event.subscribers: - # Only if not yet initialized by another layer. - initialize.initialize_1(INHIBIT_CONFIG_FILE) + initialize.initialize_1(INHIBIT_CONFIG_FILE) assert cls.var_dir is None, 'Layer already set up' # Calculate a temporary VAR_DIR directory so that run-time artifacts # of the tests won't tread on the installation's data. This also |
