tests: execute `addCleanup` cleanups with ZODB connection
unittest executes the cleanups after `tearDown`, after the ZODB connection is closed, so accessing database objects cause errors. According to python unittest documentation, it is safe to call `doCleanups` ourselves when we need the cleanup to be executed earlier, this is a typical case where we want the cleanup to be called before closing the database connections.
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#590599
external
|
ERP5.CodingStyleTest-TestRunner1 |
00:36:34
|
||||||
passed |
#590602
external
|
ERP5.PerformanceTest-TestRunner1 |
00:26:51
|
||||||
failed |
#590623
external
|
ERP5.UnitTest-TestRunner1 |
01:51:32
|
||||||
failed |
#590617
external
|
ERP5.UnitTest-Zope2-ForTestRunner1 |
01:54:50
|
||||||
passed |
#590603
external
|
Wendelin.UnitTest-TestRunner1 |
00:58:37
|
||||||
failed |
#590601
external
retried
|
ERP5.UnitTest-TestRunner1 |
01:12:48
|
||||||
failed |
#590600
external
retried
|
ERP5.UnitTest-Zope2-ForTestRunner1 |
01:23:34
|
||||||