Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ int
Class
int
testing/io/test_saferepr.py:134–136 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
132
# reprlib dispatches by type name, so use "int".
133
134
class
int:
135
def
__repr__(self):
136
raise
ValueError(
"Buggy repr!"
)
137
138
assert
"Buggy"
in saferepr(int())
139
Callers
15
pytest_runtest_logreport
Method · 0.85
formatTime
Method · 0.85
_get_auto_indent
Method · 0.85
get_log_level_for_setting
Function · 0.85
parse_num
Function · 0.85
parse_summary_nouns
Method · 0.85
_remove_unwanted_precision
Method · 0.85
_get_max_warnings
Method · 0.85
format_session_duration
Function · 0.85
from_config
Method · 0.85
pytest_collection_modifyitems
Method · 0.85
_write_pyc_fp
Function · 0.85
Calls
no outgoing calls
Tested by
15
parse_summary_nouns
Method · 0.68
_remove_unwanted_precision
Method · 0.68
test_newfirst_usecase
Method · 0.68
test_newfirst_parametrize
Method · 0.68
test_raises
Method · 0.68
test_raises_function
Method · 0.68
test_no_raise_message
Method · 0.68
test_raises_match
Method · 0.68
test_raises_match_wrong_type
Method · 0.68
test_raises_match_compiled_regex
Method · 0.68
batch_make_numbered_dirs
Function · 0.68
test_remove_removes_readonly_dir
Method · 0.68