Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78307

Re: Syntax error in python unittest script

From Emile van Sebille <emile@fenx.com>
Subject Re: Syntax error in python unittest script
Date 2014-09-24 12:40 -0700
References <2c76f6c8-bb13-44e9-8da8-62a08e067b3a@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.14328.1411587685.18130.python-list@python.org> (permalink)

Show all headers | View raw


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):

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Syntax error in python unittest script Milson Munakami <milsonmun@gmail.com> - 2014-09-24 12:33 -0700
  Re: Syntax error in python unittest script Emile van Sebille <emile@fenx.com> - 2014-09-24 12:40 -0700
  Re: Syntax error in python unittest script Peter Otten <__peter__@web.de> - 2014-09-24 21:41 +0200
  Re: Syntax error in python unittest script Milson Munakami <milsonmun@gmail.com> - 2014-09-24 13:06 -0700
    Re: Syntax error in python unittest script Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-09-24 21:28 +0100
  Re: Syntax error in python unittest script Terry Reedy <tjreedy@udel.edu> - 2014-09-24 17:39 -0400

csiph-web