diff --git a/CHANGELOG.md b/CHANGELOG.md index 70252d3..61d5e14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [4.0.1] - Unreleased +## [4.0.1] - 2024-08-09 ### Fixed +- #45: Fixed Python line 0 tracking for 2024.2 - #46: Fix for bug caused by UpdateComplexity calling GetCurrentByName unnecessarily and causing dependency issues ## [4.0.0] - 2024-08-01 diff --git a/cls/TestCoverage/Utils/LineByLineMonitor.cls b/cls/TestCoverage/Utils/LineByLineMonitor.cls index fe929d9..858ad7e 100644 --- a/cls/TestCoverage/Utils/LineByLineMonitor.cls +++ b/cls/TestCoverage/Utils/LineByLineMonitor.cls @@ -68,7 +68,7 @@ ClassMethod PyStartWithScope(pCoverageClasses As %List) [ Language = python ] class_name = frame.f_globals['__name__'] # extracts the line number line_no = frame.f_lineno - if class_name in tCoverageClasses and line_no != 1: # if this is in a covered class + if class_name in tCoverageClasses and line_no > 1: # if this is in a covered class tGlob = iris.gref('^IRIS.Temp.TestCoveragePY') # python doesn't have macros -- this is $$$PyMonitorResults # $$$PyMonitorResults(classname, linenumber) = the number of times that linenumber in that class was covered