[issue29686] Unittest - Return empty string instead of None object on shortDescription()
Serhiy Storchaka
report at bugs.python.org
Wed Mar 1 12:28:27 EST 2017
Serhiy Storchaka added the comment:
This can break a code that checks whether shortDescription() is None.
If you an empty string rather than None, just use the expression `shortDescription() or ''`.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29686>
_______________________________________
More information about the Python-bugs-list
mailing list