[issue37712] Exception frames from unittest.TestCase.fail dependent on nesting

2021-04-09 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> unittest swallows part of stack trace when raising AssertionError in a TestCase ___ Python tracker

[issue37712] Exception frames from unittest.TestCase.fail dependent on nesting

2021-04-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: > I think this is the same as issue37712. This issue was first reported as issue24959. It would be better to close the newer issues as duplicates of the first one, instead of keeping all the duplicates open. Otherwise, the history and discussion gets fragmen

[issue37712] Exception frames from unittest.TestCase.fail dependent on nesting

2021-04-07 Thread Irit Katriel
Irit Katriel added the comment: I think this is the same as issue42247. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bug

[issue37712] Exception frames from unittest.TestCase.fail dependent on nesting

2019-07-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker ___ ___ Python-bugs-list ma

[issue37712] Exception frames from unittest.TestCase.fail dependent on nesting

2019-07-29 Thread Matthew Roeschke
New submission from Matthew Roeschke : With this toy example: import unittest def this_fails(): a = 1 + None class TestExample(unittest.TestCase): def test_this(self): try: this_fails() except Exception: self.fail('Fail') if __name__ == '__mai