[issue35405] Wrong traceback for AssertionError while running under pdb

2018-12-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems this is a known issue and has an open PR https://github.com/python/cpython/pull/6233 . I checked out the PR locally and it works fine on the examples presented though has merge conflicts with master. I am closing it as duplicate of issue16482

[issue35405] Wrong traceback for AssertionError while running under pdb

2018-12-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Serhiy, is this a known behavior or issue since it's from 2.7 ? This is highly confusing and misleading as in your example and also while debugging tests that fail at a different line of assertion statement from the current line in pdb which

[issue35405] Wrong traceback for AssertionError while running under pdb

2018-12-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is nothing specific for assert and AssertionError. Other example: import pdb; pdb.set_trace() x = 1 y = 1/0 -- nosy: +serhiy.storchaka ___ Python tracker __

[issue35405] Wrong traceback for AssertionError while running under pdb

2018-12-04 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : While running under pdb when I have an assertion error after the command continue then the assertion error is mentioned with the statement under which I have executed continue command in pdb. Below script has an assertion error on assert 1 == 2 b