Syntax error in python unittest script

Emile van Sebille emile at fenx.com
Wed Sep 24 21:40:06 CEST 2014


On 9/24/2014 12:33 PM, Milson Munakami wrote:
> 	def tearDown(self):
> 		if self.failed:
> 			return
> 		duration = time.time() - self.startTime_
> 		self.cleanup(True)
> 		if self.reportStatus_:
> 			self.log.info("=== Test %s completed normally (%d sec)", self.name_, duration


The method above doesn't end cleanly (you need to add a close paren to 
the last line at least)

Emile


> 	def cleanup(self, success):





More information about the Python-list mailing list