def METHOD_NAME(cls):
    gc.collect()
    cls.app.setApplicationName(cls.__appname)
    cls.app.setOrganizationDomain(cls.__appdomain)
    cls.app.sendPostedEvents(None, 0)
    # Keep app instance alive between tests with PyQt5 5.14.0 and later
    if PYQT_VERSION <= 0x050e00:
        cls.app = None
    super(QCoreAppTestCase, cls).METHOD_NAME()
    QStandardPaths.setTestModeEnabled(False)