[issue32042] Option for comparing values instead of reprs in doctest
Serhiy Storchaka
report at bugs.python.org
Mon Nov 20 02:50:04 EST 2017
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
> Although that functionality is already easily handled; for example, here's
the OP's first example rewritten to be independent of the dict's representation
ordering:
> >>> dict_fun() == {'foo': 1, 'bar': 2}
>
> True
Oh, right. I remember the headache caused by dict order randomization, but
forgot about this option. Currently doctests are rarely used in CPython tests.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32042>
_______________________________________
More information about the Python-bugs-list
mailing list