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

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-macos-x86-64 build #1269+
test: pypy/module/_warnings/test/test_warnings.py::test_warn_globals_immutable