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

pypy/tool/pytest/test/test_appsupport.py::test_spaceconfig_param

testdir = <Testdir local('/tmp/pytest/pytest-of-buildslave/pytest-8444/test_spaceconfig_param0')>

    def test_spaceconfig_param(testdir):
        setpypyconftest(testdir)
        p = testdir.makepyfile("""
            import pytest
    
            @pytest.mark.parametrize('spaceconfig',
                [{"objspace.usemodules._random": False}])
            def test_interp(space):
                assert not space.config.objspace.usemodules._random
    
            def test_interp2(space):
                assert space.config.objspace.usemodules._random
        """)
        result = testdir.runpytest(p)
>       assert result.ret == 0
E       assert 1 == 0
E        +  where 1 = <_pytest.pytester.RunResult object at 0x7fa429adbf50>.ret

/build_dir/own-linux-x86-64/build/pypy/tool/pytest/test/test_appsupport.py:73: AssertionError
builder: own-linux-x86-64 build #10807
test: pypy/tool/pytest/test/test_appsupport/py/test_spaceconfig_param