We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c421f7c commit 7d38f43Copy full SHA for 7d38f43
1 file changed
src/ChainRulesTestUtils.jl
@@ -17,7 +17,17 @@ export ⊢, rand_tangent
17
export @maybe_inferred
18
export test_method_tables
19
20
-__init__() = init_test_inferred_setting!()
+function __init__()
21
+ init_test_inferred_setting!()
22
+
23
+ # Try to disable backtrace scrubbing so that full failures are shown
24
+ try
25
+ isdefined(Test, :scrub_backtrace) || error("Test.scrub_backtrace not defined")
26
+ @eval Test scrub_backtrace(bt, file_ts, file_t) = bt # make it do nothing
27
+ catch err
28
+ @warn "Failed to monkey=patch scrub_backtrace. Code is functional but stacktraces may be less useful" exception=(err, catch_backtrace())
29
+ end
30
+end
31
32
include("global_config.jl")
33
@@ -36,3 +46,4 @@ include("testers.jl")
36
46
include("deprecated.jl")
37
47
include("global_checks.jl")
38
48
end # module
49
0 commit comments