Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_name
Method · 0.70
eval
Function · 0.50
run_shell
Function · 0.50
install_pip
Function · 0.50
run_file
Function · 0.50
get_importer
Function · 0.50
from_str
Method · 0.50
parse_args
Function · 0.50
main
Function · 0.50
parse_python_file
Function · 0.50
new_object
Method · 0.50
get_prop
Method · 0.50
Calls
no outgoing calls
Tested by
3
test_property_name
Method · 0.56
write_input
Function · 0.40
test_mode_via_stat
Method · 0.40