Skip to content

Commit 68a0e76

Browse files
committed
fix: ignores coverage for line 0 of Python file, which 2024.2 Python shows as covered
1 parent e8afd4e commit 68a0e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cls/TestCoverage/Utils/LineByLineMonitor.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ClassMethod PyStartWithScope(pCoverageClasses As %List) [ Language = python ]
6868
class_name = frame.f_globals['__name__']
6969
# extracts the line number
7070
line_no = frame.f_lineno
71-
if class_name in tCoverageClasses and line_no != 1: # if this is in a covered class
71+
if class_name in tCoverageClasses and line_no > 1: # if this is in a covered class
7272
tGlob = iris.gref('^IRIS.Temp.TestCoveragePY') # python doesn't have macros -- this is $$$PyMonitorResults
7373
# $$$PyMonitorResults(classname, linenumber) = the number of times that linenumber in that class was covered
7474

0 commit comments

Comments
 (0)