Debian Codegraph @

pypy/module/_warnings/test/test_warnings.py

raw symbols SCIP
1 def test_warn_globals_immutable(space):
2 w_import = space.builtin.getdictvalue(space, '__import__')
3 w_warnings = space.call_function(w_import, space.newtext("warnings"))
4 # the test fails if the following line returns an ObjectMutableCell (which
5 # has no .name)
6 w_warn = w_warnings.w_dict.dstorage._x['warn']
7 assert w_warn.name == 'warn'
8 w_warn_explicit = w_warnings.w_dict.dstorage._x['warn_explicit']
9 assert w_warn_explicit.name == 'warn_explicit'