Author: Philip Jenvey <pjen...@underboss.org>
Branch: py3k
Changeset: r84439:28f25a04d635
Date: 2016-05-14 13:26 -0700
http://bitbucket.org/pypy/pypy/changeset/28f25a04d635/

Log:    adjust offsets per pypy impl details

diff --git a/lib-python/3/test/test_exceptions.py 
b/lib-python/3/test/test_exceptions.py
--- a/lib-python/3/test/test_exceptions.py
+++ b/lib-python/3/test/test_exceptions.py
@@ -155,11 +155,12 @@
             self.assertEqual(cm.exception.lineno, lineno)
             self.assertEqual(cm.exception.offset, offset)
 
+        is_pypy = check_impl_detail(pypy=True)
         check('def fact(x):\n\treturn x!\n', 2, 10)
-        check('1 +\n', 1, 4)
-        check('def spam():\n  print(1)\n print(2)', 3, 10)
-        check('Python = "Python" +', 1, 20)
-        check('Python = "\u1e54\xfd\u0163\u0125\xf2\xf1" +', 1, 20)
+        check('1 +\n', 1, 4 - is_pypy)
+        check('def spam():\n  print(1)\n print(2)', 3, 0 if is_pypy else 10)
+        check('Python = "Python" +', 1, 20 - is_pypy)
+        check('Python = "\u1e54\xfd\u0163\u0125\xf2\xf1" +', 1, 20 - is_pypy)
 
     @cpython_only
     def testSettingException(self):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to