def test_execfile_traceback(self):
        globals = {}
        try:
            execfile(self.basename1, globals)
        except __HOLE__:
            tb = sys.exc_info()[2]
            self.assertEqual(tb.tb_next.tb_frame.f_code.co_filename,
                             self.basename1)
dataset/ETHPy150Open babble/babble/include/jython/Lib/test/test_chdir.py/ExecfileTracebackTestCase.test_execfile_traceback