def test_badfuture5(self):
try:
from test import badsyntax_future5
except SyntaxError as msg:
self.assertEqual(get_error_location(msg), ("badsyntax_future5", '4'))
else:
self.fail("expected exception didn't occur")
python类badsyntax_future5()的实例源码
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")
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")
def test_badfuture5(self):
try:
from test import badsyntax_future5
except SyntaxError as msg:
self.assertEqual(get_error_location(msg), ("badsyntax_future5", '4'))
else:
self.fail("expected exception didn't occur")
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")
def test_badfuture5(self):
try:
from test import badsyntax_future5
except SyntaxError as msg:
self.assertEqual(get_error_location(msg), ("badsyntax_future5", '4'))
else:
self.fail("expected exception didn't occur")
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")
def test_badfuture5(self):
try:
from test import badsyntax_future5
except SyntaxError as msg:
self.assertEqual(get_error_location(msg), ("badsyntax_future5", '4'))
else:
self.fail("expected exception didn't occur")