Mercurial > p > roundup > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 5318:506c7ee9a385 | 5319:62de601bdf6f |
|---|---|
| 46 | 46 |
| 47 class anydbmHTMLItemTest(HTMLItemTest, unittest.TestCase): | 47 class anydbmHTMLItemTest(HTMLItemTest, unittest.TestCase): |
| 48 backend = 'anydbm' | 48 backend = 'anydbm' |
| 49 | 49 |
| 50 | 50 |
| 51 from session_common import DBMTest | 51 from session_common import SessionTest |
| 52 class anydbmSessionTest(anydbmOpener, DBMTest, unittest.TestCase): | 52 class anydbmSessionTest(anydbmOpener, SessionTest, unittest.TestCase): |
| 53 pass | 53 pass |
| 54 | 54 |
| 55 class anydbmSpecialActionTestCase(anydbmOpener, SpecialActionTest, | 55 class anydbmSpecialActionTestCase(anydbmOpener, SpecialActionTest, |
| 56 unittest.TestCase): | 56 unittest.TestCase): |
| 57 backend = 'anydbm' | 57 backend = 'anydbm' |
