def test_thread(self):
	try:
	    import thread
	except ImportError:
	    print 'threading not enabled - skipping test'
	    return

	root = self.View.root
	
	def task(self):
	    try:
		1/0
	    except:
		exc_type, exc_value, exc_traceback = sys.exc_info()
	    self.exc_traceback = exc_traceback
	    self.sync = 1
	    while self.sync:
		pass
	    self.sync = 1
	    
	self.sync = 0
	thread.start_new_thread(task, (self,))
	while not self.sync:
	    pass
	exc_traceback = self.exc_traceback
	rel = str(self.relation(root, exc_traceback))
	self.asis(eval('root'%rel), exc_traceback)
	self.sync = 0
	while not self.sync:
	    pass
	    
	def task(self):
	    self.test_1()
	    self.sync = 1
	self.sync = 0
	thread.start_new_thread(task, (self,))
	while not self.sync:
	    pass
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/guppy-0.1.10/guppy/heapy/test/test_Path.py/RootTestCase.test_thread/swapped operands of `%`