Mercurial > p > roundup > code
diff test/test_anydbm.py @ 5319:62de601bdf6f
Fix commits although a Reject exception is raised
Fix the problem that changes are committed to the database (due to
commits to otk handling) even when a Reject exception occurs. The fix
implements separate database connections for otk/session handling and
normal database operation.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Fri, 20 Apr 2018 18:46:28 +0200 |
| parents | efb34cbdba7c |
| children | d26921b851c3 |
line wrap: on
line diff
--- a/test/test_anydbm.py Thu Apr 19 20:01:43 2018 +0200 +++ b/test/test_anydbm.py Fri Apr 20 18:46:28 2018 +0200 @@ -48,8 +48,8 @@ backend = 'anydbm' -from session_common import DBMTest -class anydbmSessionTest(anydbmOpener, DBMTest, unittest.TestCase): +from session_common import SessionTest +class anydbmSessionTest(anydbmOpener, SessionTest, unittest.TestCase): pass class anydbmSpecialActionTestCase(anydbmOpener, SpecialActionTest,
