Update of /cvsroot/python/python/dist/src/Lib/test In directory usw-pr-cvs1:/tmp/cvs-serv16836 Modified Files: Tag: release22-maint test_traceback.py Log Message: Backport 1.6->1.7: 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.4 retrieving revision 1.4.12.1 diff -C2 -d -r1.4 -r1.4.12.1 *** test_traceback.py 20 Sep 2001 21:33:42 -0000 1.4 --- test_traceback.py 6 Nov 2002 11:45:51 -0000 1.4.12.1 *************** *** 2,6 **** import unittest ! from test_support import run_unittest import traceback --- 2,6 ---- import unittest ! from 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)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4