fix some test flakyness

This commit is contained in:
holger krekel
2019-07-19 22:46:58 +02:00
parent 7b3a450918
commit f13a1d4a2f
2 changed files with 8 additions and 2 deletions

View File

@@ -61,8 +61,10 @@ def set_context_callback(dc_context, func):
def clear_context_callback(dc_context):
_DC_CALLBACK_MAP.pop(dc_context, None)
try:
_DC_CALLBACK_MAP.pop(dc_context, None)
except AttributeError:
pass
def get_dc_event_name(integer, _DC_EVENTNAME_MAP={}):
if not _DC_EVENTNAME_MAP: