コード例 #1
0
ファイル: __init__.py プロジェクト: xoedusk/unknown-horizons
    def cleanup(cls):
        """
		If a test uses manual session management, we cannot be sure that session.end was
		called before a crash, leaving the game in an unclean state. This method should
		return the game to a valid state.
		"""
        Scheduler.destroy_instance()
        ExtScheduler.destroy_instance()
        SPSession._clear_caches()
コード例 #2
0
ファイル: __init__.py プロジェクト: acieroid/unknown-horizons
	def cleanup(cls):
		"""
		If a test uses manual session management, we cannot be sure that session.end was
		called before a crash, leaving the game in an unclean state. This method should
		return the game to a valid state.
		"""
		Scheduler.destroy_instance()
		ExtScheduler.destroy_instance()
		SPSession._clear_caches()