pypy/tool/pytest/test/test_appsupport.py::test_interp_spaceconfig
testdir = <Testdir local('/tmp/pytest/pytest-of-buildslave/pytest-8444/test_interp_spaceconfig0')>
def test_interp_spaceconfig(testdir):
setpypyconftest(testdir)
p = testdir.makepyfile("""
class TestClass:
spaceconfig = {"objspace.usemodules._random": False}
def setup_class(cls):
assert not cls.space.config.objspace.usemodules._random
def test_interp(self, space):
assert self.space is space
def test_interp2(self, space):
assert self.space is space
""")
result = testdir.runpytest(p)
> assert result.ret == 0
E assert 1 == 0
E + where 1 = <_pytest.pytester.RunResult object at 0x7fa429a84d10>.ret
/build_dir/own-linux-x86-64/build/pypy/tool/pytest/test/test_appsupport.py:56: AssertionError
builder: own-linux-x86-64 build #10807
test: pypy/tool/pytest/test/test_appsupport/py/test_interp_spaceconfig