MCPcopy
hub / github.com/pytest-dev/pytest / test_getfuncargnames_staticmethod_inherited

Function test_getfuncargnames_staticmethod_inherited

testing/python/fixtures.py:82–93  ·  view source on GitHub ↗

Test getfuncargnames for inherited staticmethods (#8061)

()

Source from the content-addressed store, hash-verified

80
81
82def test_getfuncargnames_staticmethod_inherited() -> None:
83 """Test getfuncargnames for inherited staticmethods (#8061)"""
84
85 class A:
86 @staticmethod
87 def static(arg1, arg2, x=1):
88 raise NotImplementedError()
89
90 class B(A):
91 pass
92
93 assert getfuncargnames(B.static, cls=B) == ("arg1", "arg2")
94
95
96@pytest.mark.skipif(

Callers

nothing calls this directly

Calls 1

getfuncargnamesFunction · 0.90

Tested by

no test coverage detected