Skip to content

Commit 948eb49

Browse files
committed
test: python tag
1 parent 86115a0 commit 948eb49

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

test/TestMex.m

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22

33
methods (Test, TestTags = "mex")
44

5-
function test_is_char_device(tc)
6-
% /dev/stdin may not be available on CI systems
7-
if ispc
8-
n = "NUL";
9-
else
10-
n = "/dev/null";
11-
end
12-
13-
tc.verifyTrue(stdlib.is_char_device(n))
14-
end
15-
16-
175
function test_remove_file(tc)
186
tc.assertTrue(stdlib.is_mex_fun("stdlib.remove"))
197

test/TestPython.m

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
classdef TestPython < matlab.unittest.TestCase
2+
3+
methods (TestClassSetup)
4+
function check_python_available(tc)
5+
tc.assumeTrue(stdlib.has_python(), "Python is not available, skipping tests")
6+
end
7+
end
8+
9+
methods (Test, TestTags = "python")
10+
11+
function test_is_char_device(tc)
12+
% /dev/stdin may not be available on CI systems
13+
if ispc
14+
n = "NUL";
15+
else
16+
n = "/dev/null";
17+
end
18+
19+
tc.verifyTrue(stdlib.is_char_device(n))
20+
end
21+
22+
end
23+
24+
end

0 commit comments

Comments
 (0)