[issue24766] Subclass of property doesn't preserve instance __doc__ when using doc= argument

Ethan Furman report at bugs.python.org
Fri Sep 18 07:46:51 CEST 2015


Ethan Furman added the comment:

ethan at code:~/source/python/issue25147$ ./python -m test.regrtest -R3:3 test_property
[1/1] test_property

Eggs  # from print() inside test

beginning 6 repetitions
123456

Spam  # the new value from the previous run seems stuck

test test_property failed -- Traceback (most recent call last):
  File "/home/ethan/source/python/issue25147/Lib/test/test_property.py", line 175, in test_property_decorator_doc_writable
    self.assertEqual(sub.__class__.spam.__doc__, 'Eggs')
AssertionError: 'Spam' != 'Eggs'
- Spam
+ Eggs


1 test failed:
    test_property

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24766>
_______________________________________


More information about the Python-bugs-list mailing list