summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_traceback.py
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@worldonline.dk>2002-11-06 11:45:15 (GMT)
committerFinn Bock <bckfnn@worldonline.dk>2002-11-06 11:45:15 (GMT)
commit57f0f3475e247dc4ef9896b02be83c2d89ff0541 (patch)
treec8659619b6026dd842dac4081950c2613d1db221 /Lib/test/test_traceback.py
parent41c570f2e7680ef1aa47c7b78d59825c608b3063 (diff)
downloadcpython-57f0f3475e247dc4ef9896b02be83c2d89ff0541.zip
cpython-57f0f3475e247dc4ef9896b02be83c2d89ff0541.tar.gz
cpython-57f0f3475e247dc4ef9896b02be83c2d89ff0541.tar.bz2
Skip the test_nocaret test when running as jython. Jython happens to add
a caret in this case too.
Diffstat (limited to 'Lib/test/test_traceback.py')
-rw-r--r--Lib/test/test_traceback.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_traceback.py b/Lib/test/test_traceback.py
index a0b3150..dc22c75 100644
--- a/Lib/test/test_traceback.py
+++ b/Lib/test/test_traceback.py
@@ -1,7 +1,7 @@
"""Test cases for traceback module"""
import unittest
-from test.test_support import run_unittest
+from test.test_support import run_unittest, is_jython
import traceback
@@ -32,6 +32,9 @@ class TracebackCases(unittest.TestCase):
self.assert_(err[1].strip() == "return x!")
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)