def testCatchStringException(self):

        # str exceptions were removed since 2.6
        if sys.version_info >= (2, 6):
            return

        try:
            raise "test"
        except "test":
            return
        except __HOLE__, e:
            self.fail(e)
        self.fail('"test" was not caught or raised')
dataset/ETHPy150Open pyjs/pyjs/examples/libtest/ExceptionTest.py/ExceptionTest.testCatchStringException