Author eric.smith
Recipients eric.smith
Date 2017-06-14.12:00:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497441609.86.0.0434143271813.issue30664@psf.upfronthosting.co.za>
In-reply-to
Content
Now that **kwargs are sorted, it would be better if the error given by a unittest subTest (as implemented in uniitest._case._SubTest) didn't sort the parameters when they're printed, but instead printed them out in order.

This might be complicated by the ChainMap that's used as part of the implementation, but it should still be doable.

For example, I have code that has:

    with self.subTest(hash=hash, cmp=cmp, frozen=frozen):

But when it errors out, it produces:

    FAIL: test_hash_rules (tst.TestCase) (cmp=True, frozen=True, hash=None)

It would be easier to check my code if the order the values was printed was the same as the order in the self.subTest() call.
History
Date User Action Args
2017-06-14 12:00:09eric.smithsetrecipients: + eric.smith
2017-06-14 12:00:09eric.smithsetmessageid: <1497441609.86.0.0434143271813.issue30664@psf.upfronthosting.co.za>
2017-06-14 12:00:09eric.smithlinkissue30664 messages
2017-06-14 12:00:09eric.smithcreate