示例#1
0
	def __init__(self, engine, test_path):
		self._engine = engine

		self._custom_setup()
		#self._filter_traceback()
		test = self._load_test(test_path)
		testlet = cooperative.spawn(test, GuiHelper(self._engine.pychan, self))
		testlet.link(self._stop_test)
		self._start()
	def __init__(self, engine, test_path):
		self._engine = engine

		self._custom_setup()
		#self._filter_traceback()
		test = self._load_test(test_path)
		testlet = cooperative.spawn(test, GuiHelper(self._engine.pychan, self))
		testlet.link(self._stop_test)
		self._start()
示例#3
0
	def handler(self, func):
		"""Temporarily install another gui handler, e.g. to handle a dialog."""
		g = cooperative.spawn(func)
		yield
		g.join()