Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/tool/pytest/test/test_pytestsupport.py::test_AppFrame

space = StdObjSpace

    def test_AppFrame(space):
        import sys
        co = PyCode._from_code(space, somefunc.func_code)
        pyframe = space.FrameClass(space, co, space.newdict(), None)
        runner = AppFrame(space, pyframe)
        interpret("f = lambda x: x+1", runner, should_fail=False)
        msg = interpret("assert isinstance(f(2), float)", runner)
>       assert msg.startswith("assert isinstance(3, float)\n"
E       AssertionError: assert False
E        +  where False = <built-in method startswith of unicode object at 0x7fa4288fd660>('assert isinstance(3, float)\n +  where 3 = ')
E        +    where <built-in method startswith of unicode object at 0x7fa4288fd660> = 'assert False\n +  where False = isinstance(3, float)\n +    where 3 = <function <lambda> at 0x00007fa42874c350>(2)'.startswith

tool/pytest/test/test_pytestsupport.py:26: AssertionError
builder: own-linux-x86-64 build #10807
test: pypy/tool/pytest/test/test_pytestsupport/py/test_AppFrame