Skip to content

Commit 11b2974

Browse files
authored
Add unitary version
1 parent 7d38f43 commit 11b2974

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ChainRulesTestUtils.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ function __init__()
2323
# Try to disable backtrace scrubbing so that full failures are shown
2424
try
2525
isdefined(Test, :scrub_backtrace) || error("Test.scrub_backtrace not defined")
26+
# depending on julia version or one or the other of these will be hit
27+
@eval Test scrub_backtrace(bt,) = bt # make it do nothing
2628
@eval Test scrub_backtrace(bt, file_ts, file_t) = bt # make it do nothing
2729
catch err
2830
@warn "Failed to monkey=patch scrub_backtrace. Code is functional but stacktraces may be less useful" exception=(err, catch_backtrace())

0 commit comments

Comments
 (0)