Skip to content

Commit d2b874c

Browse files
committed
Fix Test.Error constructor for Julia 1.13 nightly
Adjust Test.Error calls to match signature change in 1.13.0-DEV.769 where exception stack parameter type was restricted.
1 parent cfe9111 commit d2b874c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

test/runtests.jl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,17 +368,22 @@ for (testname, (resp,)) in results
368368
# the test runner itself had some problem, so we may have hit a segfault,
369369
# deserialization errors or something similar. Record this testset as Errored.
370370
fake = Test.DefaultTestSet(testname)
371-
Test.record(fake, Test.Error(:nontest_error, testname, nothing, Any[(resp, [])], LineNumberNode(1)))
371+
if VERSION >= v"1.13.0-DEV.769"
372+
Test.record(fake, Test.Error(:nontest_error, testname, resp, nothing, LineNumberNode(1)))
373+
else
374+
Test.record(fake, Test.Error(:nontest_error, testname, resp, Any[(resp, [])], LineNumberNode(1)))
375+
end
372376
Test.record(o_ts, fake)
373377
end
374378
end
375379
for test in tests
376380
(test in completed_tests) && continue
377381
fake = Test.DefaultTestSet(test)
378-
Test.record(fake, Test.Error(:test_interrupted, test, nothing,
379-
[("skipped", [])], LineNumberNode(1)
380-
)
381-
)
382+
if VERSION >= v"1.13.0-DEV.769"
383+
Test.record(fake, Test.Error(:test_interrupted, test, "skipped", nothing, LineNumberNode(1)))
384+
else
385+
Test.record(fake, Test.Error(:test_interrupted, test, nothing, [("skipped", [])], LineNumberNode(1)))
386+
end
382387
Test.record(o_ts, fake)
383388
end
384389
println()

0 commit comments

Comments
 (0)