Author: Manuel Jacob <[email protected]>
Branch:
Changeset: r81659:3f19265058a5
Date: 2016-01-11 01:44 +0100
http://bitbucket.org/pypy/pypy/changeset/3f19265058a5/
Log: Change this part of the test to use an actual external function.
This is required for a follow-up change which uses a more precise
way to recognize external functions.
diff --git a/rpython/translator/backendopt/test/test_canraise.py
b/rpython/translator/backendopt/test/test_canraise.py
--- a/rpython/translator/backendopt/test/test_canraise.py
+++ b/rpython/translator/backendopt/test/test_canraise.py
@@ -204,8 +204,7 @@
result = ra.can_raise(fgraph.startblock.operations[0])
assert not result
- z = lltype.functionptr(lltype.FuncType([lltype.Signed], lltype.Signed),
- 'foobar')
+ z = llexternal('z', [lltype.Signed], lltype.Signed)
def g(x):
return z(x)
t, ra = self.translate(g, [int])
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit