diff options
| author | Barry Warsaw | 2014-10-30 23:12:00 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2014-10-30 23:12:00 -0400 |
| commit | 4e19b227ab4c29e59801b38f12f80e1948817053 (patch) | |
| tree | cbf9334afbb749bbd1c003093eeb5d1acc05cf43 /src/mailman/testing/layers.py | |
| parent | f660e47b51d4134d3424e9696558edb70debc3c8 (diff) | |
| download | mailman-4e19b227ab4c29e59801b38f12f80e1948817053.tar.gz mailman-4e19b227ab4c29e59801b38f12f80e1948817053.tar.zst mailman-4e19b227ab4c29e59801b38f12f80e1948817053.zip | |
Diffstat (limited to 'src/mailman/testing/layers.py')
| -rw-r--r-- | src/mailman/testing/layers.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mailman/testing/layers.py b/src/mailman/testing/layers.py index 4a9841fc2..6104e64f7 100644 --- a/src/mailman/testing/layers.py +++ b/src/mailman/testing/layers.py @@ -190,10 +190,11 @@ 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() + # Destroy 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. + config.db.destroy() config.pop('test config') shutil.rmtree(cls.var_dir) cls.var_dir = None |
