[Jython-checkins] jython: Fixed test_pbcvm to comply with recent commit for Python 2.7 bytecode-support.
stefan.richthofer
jython-checkins at python.org
Sat Nov 26 00:26:46 EST 2016
https://hg.python.org/jython/rev/89be086c307c
changeset: 7973:89be086c307c
user: Stefan Richthofer <stefan.richthofer at gmx.de>
date: Sat Nov 26 06:26:22 2016 +0100
summary:
Fixed test_pbcvm to comply with recent commit for Python 2.7 bytecode-support.
files:
Lib/test/pbcvm/test/test_builtin_pyc.pyc | Bin
Lib/test/pbcvm/test/test_exceptions_pyc.pyc | Bin
Lib/test/pbcvm/test/test_types_pyc.pyc | Bin
Lib/test/test_pbcvm.py | 13 ++++++++-
4 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/Lib/test/pbcvm/test/test_builtin_pyc.pyc b/Lib/test/pbcvm/test/test_builtin_pyc.pyc
index df2d3e1b9201e98b2d4ccf93b3e4c259b9db600e..14847335fdf7dbc092a2c9ba28fa12ae6ac6efb3
GIT binary patch
[stripped]
diff --git a/Lib/test/pbcvm/test/test_exceptions_pyc.pyc b/Lib/test/pbcvm/test/test_exceptions_pyc.pyc
index 4a71ad373b0aa451ecf729f112292a5cfbd1721a..650492abdb8d60484d4e49ec9a595a7f72afb709
GIT binary patch
[stripped]
diff --git a/Lib/test/pbcvm/test/test_types_pyc.pyc b/Lib/test/pbcvm/test/test_types_pyc.pyc
index 82b540c46277a51fcfff4082320b7a728f47f375..2279f3183af9d1d02dc476d802149acad028b30b
GIT binary patch
[stripped]
diff --git a/Lib/test/test_pbcvm.py b/Lib/test/test_pbcvm.py
--- a/Lib/test/test_pbcvm.py
+++ b/Lib/test/test_pbcvm.py
@@ -7,18 +7,26 @@
def make_fib_function():
from org.python.core import PyBytecode, PyFunction
+
+ # The code below was compiled from
+ # def fib(x):
+ # if x == 0 or x == 1:
+ # return 1
+ # else:
+ # return fib(x-1)+fib(x-2)
+
co_argcount = 1
co_nlocals = 1
co_stacksize = 4
co_flags = 67
- co_code = '|\x00\x00d\x01\x00j\x02\x00p\r\x00\x01|\x00\x00d\x02\x00j\x02\x00o\x08\x00\x01d\x02\x00Sn\x1d\x00\x01t\x00\x00|\x00\x00d\x03\x00\x18\x83\x01\x00t\x00\x00|\x00\x00d\x02\x00\x18\x83\x01\x00\x17Sd\x00\x00S'
+ co_code = '|\x00\x00d\x01\x00k\x02\x00s\x18\x00|\x00\x00d\x02\x00k\x02\x00r\x1c\x00d\x02\x00St\x00\x00|\x00\x00d\x02\x00\x18\x83\x01\x00t\x00\x00|\x00\x00d\x03\x00\x18\x83\x01\x00\x17Sd\x00\x00S'
co_consts = (None, 0, 1, 2)
co_names = ('fib',)
co_varnames = ('x',)
co_filename = '<fib test code>'
co_name = 'fib'
co_firstlineno = 1
- co_lnotab = '\x00\x01\x1a\x01\x08\x02'
+ co_lnotab = '\x00\x01\x18\x01\x04\x02'
co_freevars = ()
co_cellvars = ()
@@ -73,3 +81,4 @@
if __name__ == "__main__":
test_main()
+
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list