File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,17 @@ export ⊢, rand_tangent
17
17
export @maybe_inferred
18
18
export test_method_tables
19
19
20
- __init__ () = init_test_inferred_setting! ()
20
+ 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
21
31
22
32
include (" global_config.jl" )
23
33
@@ -36,3 +46,4 @@ include("testers.jl")
36
46
include (" deprecated.jl" )
37
47
include (" global_checks.jl" )
38
48
end # module
49
+
You can’t perform that action at this time.
0 commit comments