[issue32926] Add public TestCase method/property to get result of current test

2018-02-23 Thread Victor Engmark
New submission from Victor Engmark <victor.engm...@gmail.com>: The community has come up with multiple hacks [1] to be able to inspect the current test result in tearDown (to collect more expensive diagnostics only when the test fails). It would be great to have a documented and simp

[issue32927] Add typeshed documentation for unittest.TestCase._feedErrorsToResult and ._outcome

2018-02-23 Thread Victor Engmark
New submission from Victor Engmark <victor.engm...@gmail.com>: Until and unless #32926 is fixed it would be good to be able to type inspect code which uses the currently least hacky way to inspect the result of the current test [1]. This requires the use of TestCase._feedErrorsTo

[issue34514] assertEqual doesn't use maxDiff when comparing dictionaries

2018-08-26 Thread Victor Engmark
New submission from Victor Engmark : According to the documentation `assertDictEqual()` "will be used by default to compare dictionaries in calls to assertEqual()." Great, since `maxDiff` applies to assertDictEqual(). However, `maxDiff` doesn't apply to `assertEqual()` when