Mailing List Archive

python/dist/src/Lib/test test_traceback.py,1.6,1.7
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv16162

Modified Files:
test_traceback.py
Log Message:
Skip the test_nocaret test when running as jython. Jython happens to add
a caret in this case too.



Index: test_traceback.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_traceback.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_traceback.py 30 Jul 2002 23:27:12 -0000 1.6
--- test_traceback.py 6 Nov 2002 11:45:15 -0000 1.7
***************
*** 2,6 ****

import unittest
! from test.test_support import run_unittest

import traceback
--- 2,6 ----

import unittest
! from test.test_support import run_unittest, is_jython

import traceback
***************
*** 33,36 ****
--- 33,39 ----

def test_nocaret(self):
+ if is_jython:
+ # jython adds a caret in this case (why shouldn't it?)
+ return
err = self.get_exception_format(self.syntax_error_without_caret,
SyntaxError)