[pypy-svn] r61453 - pypy/trunk/lib-python/modified-2.5.2/test
arigo at codespeak.net
arigo at codespeak.net
Fri Jan 30 10:19:51 CET 2009
Author: arigo
Date: Fri Jan 30 10:19:50 2009
New Revision: 61453
Modified:
pypy/trunk/lib-python/modified-2.5.2/test/test_traceback.py
Log:
Skip the remaining failure, with comments explaining why.
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 Fri Jan 30 10:19:50 2009
@@ -1,7 +1,7 @@
"""Test cases for traceback module"""
import unittest
-from test.test_support import run_unittest, impl_detail
+from test.test_support import run_unittest, impl_detail, check_impl_detail
import traceback
@@ -47,8 +47,11 @@
IndentationError)
self.assert_(len(err) == 4)
self.assert_(err[1].strip() == "print 2")
- self.assert_("^" in err[2])
- self.assert_(err[1].find("2") == err[2].find("^"))
+ if check_impl_detail():
+ # on CPython, there is a "^" at the end of the line
+ # on PyPy, there is a "^" too, but at the start, more logically
+ self.assert_("^" in err[2])
+ self.assert_(err[1].find("2") == err[2].find("^"))
def test_bug737473(self):
import sys, os, tempfile, time
More information about the Pypy-commit
mailing list