diff test/test_mailgw.py @ 6365:7f00fc5958ca

Make memorydb persistent across re-open This allows memorydb to be used for more tests, in particular re-opening with another user for checking permissions.
author Ralf Schlatterbeck <rsc@runtux.com>
date Wed, 31 Mar 2021 12:49:28 +0200
parents 58817c3bf471
children 2453d7b58a92
line wrap: on
line diff
--- a/test/test_mailgw.py	Tue Mar 30 21:04:53 2021 -0400
+++ b/test/test_mailgw.py	Wed Mar 31 12:49:28 2021 +0200
@@ -223,6 +223,7 @@
         if os.path.exists(SENDMAILDEBUG):
             os.remove(SENDMAILDEBUG)
         self.db.close()
+        memorydb.db_nuke('')
 
     def _allowAnonymousSubmit(self):
         p = [

Roundup Issue Tracker: http://roundup-tracker.org/