Author: Armin Rigo <[email protected]>
Branch:
Changeset: r76663:3df0542cbfa7
Date: 2015-03-31 17:57 +0200
http://bitbucket.org/pypy/pypy/changeset/3df0542cbfa7/
Log: A bug!
diff --git a/rpython/rtyper/test/test_rpbc.py b/rpython/rtyper/test/test_rpbc.py
--- a/rpython/rtyper/test/test_rpbc.py
+++ b/rpython/rtyper/test/test_rpbc.py
@@ -1656,6 +1656,23 @@
res = self.interpret(g, [2])
assert self.ll_to_string(res) == "ASub"
+ def test_bug_callfamily(self):
+ def cb1():
+ pass
+ def cb2():
+ pass
+ def g(cb):
+ pass
+ def h(cb):
+ cb()
+ def f():
+ g(cb1)
+ g(cb2)
+ h(cb2)
+ return 42
+ res = self.interpret(f, [])
+ assert res == 42
+
# ____________________________________________________________
class TestRPBCExtra(BaseRtypingTest):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit