A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2002-November/030573.html below:

[Python-checkins] python/dist/src/Lib/test test_traceback.py,1.4,1.4.12.1

[Python-checkins] python/dist/src/Lib/test test_traceback.py,1.4,1.4.12.1bckfnn@users.sourceforge.net bckfnn@users.sourceforge.net
Wed, 06 Nov 2002 03:45:54 -0800
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