MCPcopy Index your code
hub / github.com/RustPython/RustPython / Err

Class Err

Lib/test/test_property.py:246–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244 property(1).__name__
245
246 class Err:
247 def __getattr__(self, attr):
248 raise RuntimeError('fail')
249
250 p = property(Err())
251 with self.assertRaisesRegex(RuntimeError, 'fail'):

Callers 15

test_property_nameMethod · 0.70
evalFunction · 0.50
run_shellFunction · 0.50
install_pipFunction · 0.50
run_fileFunction · 0.50
get_importerFunction · 0.50
from_strMethod · 0.50
parse_argsFunction · 0.50
mainFunction · 0.50
parse_python_fileFunction · 0.50
new_objectMethod · 0.50
get_propMethod · 0.50

Calls

no outgoing calls

Tested by 3

test_property_nameMethod · 0.56
write_inputFunction · 0.40
test_mode_via_statMethod · 0.40