pypy/module/_warnings/test/test_warnings.py::test_warn_globals_immutable
space = StdObjSpace
def test_warn_globals_immutable(space):
w_import = space.builtin.getdictvalue(space, '__import__')
w_warnings = space.call_function(w_import, space.newtext("warnings"))
# the test fails if the following line returns an ObjectMutableCell (which
# has no .name)
w_warn = w_warnings.w_dict.dstorage._x['warn']
> assert w_warn.name == 'warn'
E AttributeError: 'ObjectMutableCell' object has no attribute 'name'
module/_warnings/test/test_warnings.py:7: AttributeError
(somefailed=True in module/_warnings/test)
builder: own-linux-aarch64 build #2779+
test: pypy/module/_warnings/test/test_warnings.py::test_warn_globals_immutable