tests: yet another fix for integration tests cleanup code

Before waiting for remaining tasks on event loop (including libvirt
events), make sure all destroyed objects are really destroyed. This is
especially important for libvirt connections, which gets cleaned up only
when appropriate destructor (__del__) register a cleanup callback and it
gets called by the loop.
这个提交包含在:
Marek Marczykowski-Górecki 2018-04-05 00:36:34 +02:00
父节点 3726692530
当前提交 8df90f1a86
找不到此签名对应的密钥
GPG 密钥 ID: 063938BA42CFA724

查看文件

@ -410,6 +410,9 @@ class QubesTestCase(unittest.TestCase):
global libvirt_event_impl
# really destroy all objects that could have used loop and/or libvirt
gc.collect()
# Check for unfinished libvirt business.
if libvirt_event_impl is not None:
try: