Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ A
Class
A
testing/code/test_source.py:221–224 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
219
220
def
test_getstartingblock_singleline() -> None:
221
class
A:
222
def
__init__(self, *args) -> None:
223
frame = sys._getframe(1)
224
self.source = Frame(frame).statement
225
226
x = A(
"x"
,
"y"
)
227
Callers
3
test_getstartingblock_singleline
Function · 0.70
test_code_of_object_instance_with_call
Function · 0.70
test_getstartingblock_multiline
Function · 0.70
Calls
no outgoing calls
Tested by
3
test_getstartingblock_singleline
Function · 0.56
test_code_of_object_instance_with_call
Function · 0.56
test_getstartingblock_multiline
Function · 0.56