From 6dd350021b30739dec375ec90e040d6e2ec63c11 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Thu, 2 Jun 2011 17:31:05 -0300 Subject: Test for bug 291 - "Generator ignores inject code for rich comparison operators." Reviewer: Marcelo Lira Luciano Wolf --- tests/samplebinding/typesystem_sample.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml index 87ee5512f..927483bf5 100644 --- a/tests/samplebinding/typesystem_sample.xml +++ b/tests/samplebinding/typesystem_sample.xml @@ -1389,6 +1389,13 @@ %PYARG_0 = PyString_FromString(%1); + + + // This should test if code injections works inside rich comparison operators + Py_INCREF(Py_True); + %PYARG_0 = Py_True; + + -- cgit v1.2.3