You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing a script that has an if inside a case block, if the condition in the if block is false, the trace module reports that the last line of the if block is executed, even it is false.
This causes problems with debuggers and code coverage tools.
Bug report
When executing a script that has an if inside a case block, if the condition in the if block is false, the
trace
module reports that the last line of the if block is executed, even it is false.This causes problems with debuggers and code coverage tools.
An example of the problem:
The output is:
I can't understand why the row 7 (the line with the
return 1 / 0
) is reported as executed in the trace.The line is not executed, as the program doesn't raise a ZeroDivisionError.
I've tried searching in the issue tracker but didn't find anything, sorry if I missed some already existing issue.
Your environment
The text was updated successfully, but these errors were encountered: