def test_badfuture5(self):
try:
from test import badsyntax_future5
except SyntaxError, msg:
self.assertEqual(get_error_location(msg), ("badsyntax_future5", '4'))
else:
self.fail("expected exception didn't occur")
文章目录