[pypy-commit] pypy py3.6-wordcode: fix test
cfbolz
pypy.commits at gmail.com
Tue May 22 06:19:46 EDT 2018
Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
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
More information about the pypy-commit
mailing list