mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Skip the test_nocaret test when running as jython. Jython happens to add
a caret in this case too.
This commit is contained in:
parent
41c570f2e7
commit
57f0f3475e
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
"""Test cases for traceback module"""
|
"""Test cases for traceback module"""
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
from test.test_support import run_unittest
|
from test.test_support import run_unittest, is_jython
|
||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
|
@ -32,6 +32,9 @@ class TracebackCases(unittest.TestCase):
|
||||||
self.assert_(err[1].strip() == "return x!")
|
self.assert_(err[1].strip() == "return x!")
|
||||||
|
|
||||||
def test_nocaret(self):
|
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,
|
err = self.get_exception_format(self.syntax_error_without_caret,
|
||||||
SyntaxError)
|
SyntaxError)
|
||||||
self.assert_(len(err) == 3)
|
self.assert_(len(err) == 3)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue