def test_catching2(self):
        
        def catchtest(x):
            try:
                raise ValueError('foo')
            except Exception as err:
                print(err.message)
            return undefined
        
        assert evaljs(py2js(catchtest, 'f') + 'f(1)').endswith('foo')
dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_parser2.py/TestExceptions.test_catching2/original