Skip to content

Commit

Permalink
Fix trivial test breakage on nightly (#595)
Browse files Browse the repository at this point in the history
`redirect_std*` changed its implementation, and one of Revise's
tests indavertently depended on the former implementation.

Also load CodeTracking & LoweredCodeUtils via Revise for
the signatures test (facilitates `include("runtests.jl")` testing).
  • Loading branch information
timholy authored Jan 13, 2021
1 parent 8c83750 commit a7b51cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2930,7 +2930,7 @@ end
m = @which show([1,2,3])
@test definition(m) isa Expr
m = @which redirect_stdout()
@test definition(m).head === :function
@test definition(m).head (:function, :(=))

# Tracking stdlibs
Revise.track(Unicode)
Expand Down
4 changes: 3 additions & 1 deletion test/sigtest.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Revise, Test, CodeTracking, LoweredCodeUtils
using Revise, Test
using Revise.CodeTracking
using Revise.LoweredCodeUtils

function isdefinedmod(mod::Module)
# Not all modules---e.g., LibGit2---are reachable without loading the stdlib
Expand Down

0 comments on commit a7b51cb

Please sign in to comment.