We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5661fdf commit 30cbaddCopy full SHA for 30cbadd
test/is_capable.m
@@ -26,16 +26,11 @@ function is_capable(tc, f)
26
tc.assumeGreaterThanOrEqual(japi, 11)
27
end
28
29
-elseif ~isMATLABReleaseOlderThan('R2022a') && contains(n, "python")
+elseif contains(n, "python")
30
31
tc.assumeTrue(stdlib.has_python())
32
33
- try
34
- py.psutil.version_info();
35
- has_psutil = true;
36
- catch
37
- has_psutil = false;
38
- end
+ has_psutil = pvt_psutil();
39
40
if contains(n, ["ram_free", "ram_total"])
41
tc.assumeTrue(has_psutil, "need Python psutil package")
test/private/pvt_psutil.m
@@ -0,0 +1,10 @@
1
+function y = pvt_psutil()
2
+
3
+try
4
+ py.psutil.version_info();
5
+ y = true;
6
+catch
7
+ y = false;
8
+end
9
10
0 commit comments