@dec.slow
    def test_noargs_with_args(self):
        # calling a function that doesn't take args with args should fail.
        a = Foo()
        code = """
               py::tuple args(2);
               args[0] = 1;
               args[1] = "hello";
               return_val = a.mcall("bar",args);
               """
        try:
            first = sys.getrefcount(a)
            inline_tools.inline(code,['a'])
        except __HOLE__:
            second = sys.getrefcount(a)
            try:
                inline_tools.inline(code,['a'])
            except TypeError:
                third = sys.getrefcount(a)

        # first should == second, but the weird refcount error
        assert_equal(second,third)
dataset/ETHPy150Open scipy/scipy/scipy/weave/tests/test_scxx_object.py/TestObjectMcall.test_noargs_with_args