Skip to content

Commit 69f62c8

Browse files
committed
test(fix): guard mpmlist with R2025a release check
1 parent b76ea54 commit 69f62c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/system/package/tToolbox.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ function useMATLABR2025aOrAbove(testCase)
1616
end
1717

1818
function checkMATLABPackage(testCase)
19-
testCase.assumeEmpty(mpmlist(mag.buildtool.task.PackageTask.ToolboxName), "MAG Data Visualization installed as a MATLAB package.");
19+
20+
% MATLAB will still execute this method, even if the above
21+
% check fails.
22+
if ~isMATLABReleaseOlderThan("R2025a")
23+
testCase.assumeEmpty(mpmlist(mag.buildtool.task.PackageTask.ToolboxName), "MAG Data Visualization installed as a MATLAB package.");
24+
end
2025
end
2126
end
2227

0 commit comments

Comments
 (0)