Re: Python unittest2.SkipTest and general suggestion

2016-02-21 Thread Ganesh Pal
On Sun, Feb 21, 2016 at 10:33 PM, Ben Finney wrote: > You are already supplying a custom message to ‘self.skipTest’:: > > except Exception as exc: > logging.error(exc) > raise unittest.SkipTest("Failure running Integrity Scan ") > > So you can change that message by including

Re: Python unittest2.SkipTest and general suggestion

2016-02-21 Thread Ben Finney
Ganesh Pal writes: > 1. unittest.SkipTest does not the display the exception message that > is caught. You are already supplying a custom message to ‘self.skipTest’:: except Exception as exc: logging.error(exc) raise unittest.SkipTest("Failure running Integrity Scan ") So y

Python unittest2.SkipTest and general suggestion

2016-02-21 Thread Ganesh Pal
Hello team, Please provide your guidance on how to proceed with the below test , Iam on python 2.6 and Linux. I have a linitation to use python 2.6 and unittest2 try: import unittest2 as unittest except ImportError: import unittest class isiCorruptTest(unittest.TestCase): corrupt_