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 c4f16d3 commit 1ae71aaCopy full SHA for 1ae71aa
test/util.jl
@@ -2,11 +2,14 @@ extract_test_result_value(test_result::Test.Pass) = test_result.value
2
3
recursively_unwrap_ex(ex::ErrorException) = ex
4
recursively_unwrap_ex(ex::Base.IOError) = ex
5
-function recursively_unwrap_ex(outer_ex::TaskFailedException)
6
- new_thing = outer_ex.task.exception
7
- return recursively_unwrap_ex(new_thing)
8
-end
9
+@static if Base.VERSION >= v"1.2-"
+ function recursively_unwrap_ex(outer_ex::TaskFailedException)
+ new_thing = outer_ex.task.exception
+ return recursively_unwrap_ex(new_thing)
10
+ end
11
+end
12
+
13
Base.@kwdef struct ConfigForTestingTaskFailedException
14
expected_outer_ex_T
15
expected_inner_ex_INSTANCE
0 commit comments