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

Method test_property_builtin_doc_writable

Lib/test/test_property.py:156–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

154 @unittest.skipIf(sys.flags.optimize >= 2,
155 "Docstrings are omitted with -O2 and above")
156 def test_property_builtin_doc_writable(self):
157 p = property(doc='basic')
158 self.assertEqual(p.__doc__, 'basic')
159 p.__doc__ = 'extended'
160 self.assertEqual(p.__doc__, 'extended')
161
162 @unittest.skipIf(sys.flags.optimize >= 2,
163 "Docstrings are omitted with -O2 and above")

Callers

nothing calls this directly

Calls 2

propertyClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected