streamline fixtures for online accounts, reducing test functions

This commit is contained in:
holger krekel
2019-09-18 10:33:23 +02:00
parent ee327dc87d
commit fc1f1ce37c
3 changed files with 44 additions and 74 deletions

View File

@@ -396,7 +396,7 @@ class Account(object):
def shutdown(self, wait=True):
""" stop threads and close and remove underlying dc_context and callbacks. """
if hasattr(self, "_dc_context") and hasattr(self, "_threads"):
print("SHUTDOWN", self)
# print("SHUTDOWN", self)
self.stop_threads(wait=False)
lib.dc_close(self._dc_context)
self.stop_threads(wait=wait) # to wait for threads