MCPcopy Index your code
hub / github.com/python/cpython / 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 1

test_property_nameMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_property_nameMethod · 0.56