diff options
| author | Barry Warsaw | 2014-09-27 18:16:22 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2014-09-27 18:16:22 -0400 |
| commit | b3500aefb15c63ccf60ab4508868f770ffd2d309 (patch) | |
| tree | 049e083e3ce28e7e504c1945f0dd8e2cf09dd40b /src/mailman/testing/layers.py | |
| parent | eef73255db608785a55c055cbbfb800603671ff6 (diff) | |
| parent | 03647b16eb75cc841bb15c3c48ac5f18f77118b8 (diff) | |
| download | mailman-b3500aefb15c63ccf60ab4508868f770ffd2d309.tar.gz mailman-b3500aefb15c63ccf60ab4508868f770ffd2d309.tar.zst mailman-b3500aefb15c63ccf60ab4508868f770ffd2d309.zip | |
Diffstat (limited to 'src/mailman/testing/layers.py')
| -rw-r--r-- | src/mailman/testing/layers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman/testing/layers.py b/src/mailman/testing/layers.py index eb51e309f..4a9841fc2 100644 --- a/src/mailman/testing/layers.py +++ b/src/mailman/testing/layers.py @@ -190,6 +190,10 @@ class ConfigLayer(MockAndMonkeyLayer): @classmethod def tearDown(cls): assert cls.var_dir is not None, 'Layer not set up' + # Reset the test database after the tests are done so that there is no + # data in case the tests are rerun with a database layer like mysql or + # postgresql which are not deleted in teardown. + reset_the_world() config.pop('test config') shutil.rmtree(cls.var_dir) cls.var_dir = None |
