Commit 25eb8920 authored by Jérome Perrin's avatar Jérome Perrin

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.
parent 4350a316
Pipeline #27864 failed with stage
in 0 seconds