File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1212
1313methods (TestClassSetup )
1414function test_dirs(tc )
15- tc.td = createTempdir(tc );
1615 pkg_path(tc )
16+ tc.td = createTempdir(tc );
1717
1818 tc .applyFixture(matlab .unittest .fixtures .CurrentFolderFixture(tc .td ))
1919end
Original file line number Diff line number Diff line change 33 tc (1 ,1 ) matlab.unittest.TestCase
44end
55
6- if stdlib .matlabOlderThan(' R2022a' )
6+ try
7+ td = tc .createTemporaryFolder();
8+ catch e
9+ if e .identifier ~= " MATLAB:UndefinedFunction"
10+ rethrow(e )
11+ end
12+
713 td = tempname();
814 [ok , err ] = mkdir(td );
915 tc .assumeTrue(ok , err )
1016 tc .addTeardown(@() rmdir(td , ' s' ))
11- else
12- td = tc .createTemporaryFolder();
1317end
1418
1519assert(nargout == 1 , " use this function to set a test Property or variable directly" )
You can’t perform that action at this time.
0 commit comments