[issue30664] Change unittest's _SubTest to not sort its params when printing test failures

Louie Lu report at bugs.python.org
Wed Jun 14 08:41:34 EDT 2017


Louie Lu added the comment:

I think the question will be, when using multiple subTest (this is why using ChainMap I think), how to determine their order?:

    with self.subTest(c=i, b=i, a=i):
        with self.subTest(b=i, c=50, a=60):
	    self.assertEqual(i, 2)


>>> FAIL: test_foo (__main__.Test) (a=60, b=4, c=50)

----------
nosy: +louielu

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30664>
_______________________________________


More information about the Python-bugs-list mailing list