diff options
| author | Barry Warsaw | 2009-01-06 19:55:59 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-06 19:55:59 -0500 |
| commit | 89f5f76ed31d6ca2faf8e2a783a37e9009b03413 (patch) | |
| tree | f1023f64501a49917674f5bcd78927aa5cee08ef /mailman/testing/layers.py | |
| parent | 37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6 (diff) | |
| download | mailman-89f5f76ed31d6ca2faf8e2a783a37e9009b03413.tar.gz mailman-89f5f76ed31d6ca2faf8e2a783a37e9009b03413.tar.zst mailman-89f5f76ed31d6ca2faf8e2a783a37e9009b03413.zip | |
Diffstat (limited to 'mailman/testing/layers.py')
| -rw-r--r-- | mailman/testing/layers.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/mailman/testing/layers.py b/mailman/testing/layers.py index c9b99cab9..0bac91c5c 100644 --- a/mailman/testing/layers.py +++ b/mailman/testing/layers.py @@ -49,6 +49,7 @@ class ConfigLayer: """Layer for pushing and popping test configurations.""" var_dir = None + styles = None @classmethod def setUp(cls): @@ -136,9 +137,7 @@ class ConfigLayer: @classmethod def testSetUp(cls): - # Record the current (default) set of styles so that we can reset them - # easily in the tear down. - cls.styles = set(config.style_manager.styles) + pass @classmethod def testTearDown(cls): @@ -153,10 +152,7 @@ class ConfigLayer: config.db.message_store.delete_message(message['message-id']) config.db.commit() # Reset the global style manager. - new_styles = set(config.style_manager.styles) - cls.styles - for style in new_styles: - config.style_manager.unregister(style) - cls.styles = None + config.style_manager.populate() # Flag to indicate that loggers should propagate to the console. stderr = False |
