This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Tomáš Petříček
Recipients Tomáš Petříček
Date 2017-11-15.21:39:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510781972.21.0.213398074469.issue32042@psf.upfronthosting.co.za>
In-reply-to
Content
Would there be an interest and possibility to add an option to the doctest module to compare values instead of reprs? The idea is that the expected value would be eval'ed prior to comparison if this option was enabled.

Motivation for this option is to enable comparison of values (states) as defined in the respective classes and not by a representation which might vary ({'a', 'b'} vs {'b', 'a'}, 'value' vs "value" etc.).
History
Date User Action Args
2017-11-15 21:39:32Tomáš Petříčeksetrecipients: + Tomáš Petříček
2017-11-15 21:39:32Tomáš Petříčeksetmessageid: <1510781972.21.0.213398074469.issue32042@psf.upfronthosting.co.za>
2017-11-15 21:39:32Tomáš Petříčeklinkissue32042 messages
2017-11-15 21:39:32Tomáš Petříčekcreate