Message295998
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. |
|
Date |
User |
Action |
Args |
2017-06-14 12:00:09 | eric.smith | set | recipients:
+ eric.smith |
2017-06-14 12:00:09 | eric.smith | set | messageid: <1497441609.86.0.0434143271813.issue30664@psf.upfronthosting.co.za> |
2017-06-14 12:00:09 | eric.smith | link | issue30664 messages |
2017-06-14 12:00:09 | eric.smith | create | |
|