MCPcopy Index your code
hub / github.com/python/cpython / test_staticmethod

Method test_staticmethod

Lib/test/test_decorators.py:96–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 return wrapper
95
96 def test_staticmethod(self):
97 wrapper = self.check_wrapper_attrs(staticmethod, '<staticmethod({!r})>')
98
99 # bpo-43682: Static methods are callable since Python 3.10
100 self.assertEqual(wrapper(1), 1)
101
102 def test_classmethod(self):
103 wrapper = self.check_wrapper_attrs(classmethod, '<classmethod({!r})>')

Callers

nothing calls this directly

Calls 3

check_wrapper_attrsMethod · 0.95
wrapperFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected