test_future
6
6
-SyntaxError test_future3 3
-SyntaxError test_future4 3
-SyntaxError test_future5 4
-SyntaxError test_future6 3
-SyntaxError test_future7 3
+SyntaxError badsyntax_future3 3
+SyntaxError badsyntax_future4 3
+SyntaxError badsyntax_future5 4
+SyntaxError badsyntax_future6 3
+SyntaxError badsyntax_future7 3
'test_b2',
'test_future1',
'test_future2',
- 'test_future3',
- 'test_future4',
- 'test_future5',
- 'test_future6',
- 'test_future7',
]
def findtests(testdir=None, stdtests=STDTESTS, nottests=NOTTESTS):
# The remaining tests should fail
try:
- import test_future3
+ import badsyntax_future3
except SyntaxError, msg:
check_error_location(str(msg))
try:
- import test_future4
+ import badsyntax_future4
except SyntaxError, msg:
check_error_location(str(msg))
try:
- import test_future5
+ import badsyntax_future5
except SyntaxError, msg:
check_error_location(str(msg))
try:
- import test_future6
+ import badsyntax_future6
except SyntaxError, msg:
check_error_location(str(msg))
try:
- import test_future7
+ import badsyntax_future7
except SyntaxError, msg:
check_error_location(str(msg))
def syntax_error_without_caret(self):
# XXX why doesn't compile raise the same traceback?
- import nocaret
+ import badsyntax_nocaret
def test_caret(self):
err = self.get_exception_format(self.syntax_error_with_caret,