def test_badfuture9(self):
try:
from test import badsyntax_future9
except SyntaxError, msg:
self.assertEqual(get_error_location(msg), ("badsyntax_future9", '3'))
else:
self.fail("expected exception didn't occur")
评论列表
文章目录