Skip to content

Commit 5b3ae11

Browse files
committed
is_capable: Python needs Matlab >= R2022a
1 parent eb7bb5d commit 5b3ae11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/is_capable.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ function is_capable(tc, f)
1212

1313
tc.assumeGreaterThan(dapi, 0)
1414

15+
if contains(n, "ram_total")
16+
tc.assumeGreaterThanOrEqual(dapi, 6);
17+
end
18+
1519
elseif contains(n, "java")
1620

1721
japi = stdlib.java_api();
@@ -22,7 +26,7 @@ function is_capable(tc, f)
2226
tc.assumeGreaterThanOrEqual(japi, 11)
2327
end
2428

25-
elseif contains(n, "python")
29+
elseif ~isMATLABReleaseOlderThan('R2022a') && contains(n, "python")
2630

2731
tc.assumeTrue(stdlib.has_python())
2832

0 commit comments

Comments
 (0)