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 |
#590680
external
|
ERP5.CodingStyleTest-Master |
01:04:21
|
||||||
passed |
#590725
external
|
ERP5.PerformanceTest-Master |
00:26:56
|
||||||
failed |
#590681
external
|
ERP5.UnitTest-Master |
01:44:40
|
||||||
failed |
#590719
external
|
ERP5.UnitTest-Zope2 |
04:22:31
|
||||||
passed |
#590707
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:14:11
|
||||||
passed |
#590690
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:14:51
|
||||||
failed |
#590730
external
|
Wendelin.UnitTest-Master |
00:30:56
|
||||||
failed |
#590698
external
retried
|
Wendelin.UnitTest-Master |
00:30:33
|
||||||
canceled |
#590723
external
retried
|
Wendelin.UnitTest-Master |
|
||||||