Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: py3.6-wordcode
Changeset: r94652:bac7bc4a6c4f
Date: 2018-05-22 12:19 +0200
http://bitbucket.org/pypy/pypy/changeset/bac7bc4a6c4f/
Log: fix test
diff --git a/lib-python/3/test/test_opcodes.py
b/lib-python/3/test/test_opcodes.py
--- a/lib-python/3/test/test_opcodes.py
+++ b/lib-python/3/test/test_opcodes.py
@@ -27,7 +27,9 @@
with open(ann_module.__file__) as f:
txt = f.read()
co = compile(txt, ann_module.__file__, 'exec')
- self.assertEqual(co.co_firstlineno, 6)
+ # On PyPy, the lineno of multiline tokens is the *first* line, on
+ # CPython the last (CPython expects 6 here)
+ self.assertEqual(co.co_firstlineno, 3)
except OSError:
pass
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit