[pypy-svn] r61249 - pypy/trunk/lib-python/modified-2.5.2/test
arigo at codespeak.net
arigo at codespeak.net
Thu Jan 22 16:54:45 CET 2009
Author: arigo
Date: Thu Jan 22 16:54:45 2009
New Revision: 61249
Modified:
pypy/trunk/lib-python/modified-2.5.2/test/test_traceback.py
Log:
Skip test_nocaret again on non-CPython implementations.
Modified: pypy/trunk/lib-python/modified-2.5.2/test/test_traceback.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/test_traceback.py (original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_traceback.py Thu Jan 22 16:54:45 2009
@@ -1,7 +1,7 @@
"""Test cases for traceback module"""
import unittest
-from test.test_support import run_unittest, is_jython
+from test.test_support import run_unittest, impl_detail
import traceback
@@ -35,10 +35,8 @@
self.assert_("^" in err[2]) # third line has caret
self.assert_(err[1].find("!") == err[2].find("^")) # in the right place
+ @impl_detail("other implementations may add a caret (why shouldn't they?)")
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)
self.assert_(len(err) == 3)
More information about the Pypy-commit
mailing list