From d20af910b287f8a7f13b51ee07c89e79af35f8a4 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 13 Oct 2014 17:13:38 -0400 Subject: Remove some unnecessary code. --- src/mailman/testing/layers.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2