| 304 | # be set via property subclasses in the first place. |
| 305 | with self.assertRaises(AttributeError): |
| 306 | class Foo(object): |
| 307 | @PropertySubSlots |
| 308 | def spam(self): |
| 309 | """Trying to copy this docstring will raise an exception""" |
| 310 | return 1 |
| 311 | |
| 312 | def test_property_with_slots_no_docstring(self): |
| 313 | # https://github.com/python/cpython/issues/98963#issuecomment-1574413319 |