This fixes a bug in impl_PyRun_SimpleStringFlags: [...] File "/home/tromey/Space/Trunk/gcc-python-plugin/libcpychecker/refcounts.py", line 3066, in impl_PyRun_SimpleStringFlags oc_failure.returns(-1) NameError: global name 'oc_failure' is not defined --- libcpychecker/refcounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcpychecker/refcounts.py b/libcpychecker/refcounts.py index d6f4c55..abe034a 100644 --- a/libcpychecker/refcounts.py +++ b/libcpychecker/refcounts.py @@ -3063,7 +3063,7 @@ class CPython(Facet): on_success.returns(0)
on_failure = fncall.can_fail() - oc_failure.returns(-1) + on_failure.returns(-1) # (no way to get the exception on failure)
return fncall.get_transitions()
On Wed, 2013-04-17 at 11:44 -0600, Tom Tromey wrote:
This fixes a bug in impl_PyRun_SimpleStringFlags:
Thanks; applied as 385b63c90594db171075df2a9295a5ff354ac0a6 and pushed.
(Clearly this was missing test coverage, but I'd rather get the fix in, rather than wait for a test).
gcc-python-plugin@lists.fedorahosted.org