Skip to content

Commit 1cbb1a9

Browse files
committed
Update tFormatCode isApplicable check to check Java Swing again
1 parent 3909f9f commit 1cbb1a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/matlab/matlabls/handlers/formatting/tFormatCode.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ function isApplicable (testCase)
99
% Determine if the test should be skipped in the current environment
1010
isTestingEnvironment = ~isempty(getenv('MATLAB_TEST_ENVIRONMENT'));
1111
shouldRun = ~(isMATLABReleaseOlderThan('R2023b') && isTestingEnvironment);
12+
shouldRun = ~isMATLABReleaseOlderThan('R2025a') || isempty(javachk('swing'));
1213

1314
testCase.assumeTrue(...
1415
shouldRun,...

0 commit comments

Comments
 (0)