On 9/24/2014 3:33 PM, Milson Munakami wrote:
I am learning to use unittest with python
[way too long example]
File "TestTest.py", line 44
def cleanup(self, success):
^
SyntaxError: invalid syntax
A common recommendation is to find the *minimal* example that exhibits
the proble
On 24/09/2014 21:06, Milson Munakami wrote:
[snipped all the usual garbage]
Would you please access this list via
https://mail.python.org/mailman/listinfo/python-list or read and action
this https://wiki.python.org/moin/GoogleGroupsPython to prevent us
seeing double line spacing and single li
On Wednesday, September 24, 2014 1:33:35 PM UTC-6, Milson Munakami wrote:
> Hi,
>
>
>
> I am learning to use unittest with python and walkthrough with this example
>
> http://agiletesting.blogspot.com/2005/01/python-unit-testing-part-1-unittest.html
>
>
> Thanks
> so my test script is like th
Milson Munakami wrote:
> if self.reportStatus_:
> self.log.info("=== Test %s completed normally (%d
> sec)", self.name_, duration
The info() call is missing the closing parenthesis
> def cleanup(self, success):
> sys.excepthook =
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.
Hi,
I am learning to use unittest with python and walkthrough with this example
http://agiletesting.blogspot.com/2005/01/python-unit-testing-part-1-unittest.html
so my test script is like this:
import json
import urllib
#import time
#from util import *
import httplib
#import sys
#from scapy.all i
Lalit <[EMAIL PROTECTED]> wrote:
>Hi
>I am executing following commands.
test = os.path.isfile('c:\\src\\kasjdfl.txt')
print test
>True
>working fine but for below statement it is giving syntax
>error.
>
if (os.path.isfile('c:\\src\\kasjdfl.txt'))
>SyntaxError: invalid s
On Feb 20, 2:03 pm, Lalit <[EMAIL PROTECTED]> wrote:
> Hi
> I am executing following commands.>>> test =
> os.path.isfile('c:\\src\\kasjdfl.txt')
> >>> print test
>
> True
> working fine but for below statement it is giving syntax
> error.
>
> >>> if (os.path.isfile('c:\\src\\kasjdfl.t
Hi
I am executing following commands.
>>> test = os.path.isfile('c:\\src\\kasjdfl.txt')
>>> print test
True
working fine but for below statement it is giving syntax
error.
>>> if (os.path.isfile('c:\\src\\kasjdfl.txt'))
SyntaxError: invalid syntax
any idea what is incorrect in my synt