refactor some python infra, and don't do shutdown on __del__, it's not prepared for running during teardown

This commit is contained in:
holger krekel
2020-05-24 15:36:20 +02:00
parent 7f4627356b
commit fa3ee4205d
3 changed files with 21 additions and 23 deletions

View File

@@ -1087,7 +1087,7 @@ class TestOnlineAccount:
lp.sec("ac2: mark seen {}".format(msg))
msg.mark_seen()
for ev in ac1._evtracker.yield_matching(""):
for ev in ac1._evtracker.iter_events():
if ev.name == "DC_EVENT_INCOMING_MSG":
pytest.fail("MDN arrived as regular incoming message")
elif ev.name == "DC_EVENT_MSG_READ":