Skip to content

Commit

Permalink
Avoid failure due to noninteractive
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Aug 4, 2024
1 parent e1998c0 commit 20f3d68
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,13 @@ end
@test occursin(String(m.file), String(body.args[idx].file))
@test ex == code_expr(gcd, Tuple{Int,Int})

m = first(methods(edit))
sigs = signatures_at(String(m.file), m.line)
@test !isempty(sigs)
sigs = signatures_at(Base.find_source_file(String(m.file)), m.line)
@test !isempty(sigs)
if Base.VERSION < v"1.11.0-0"
m = first(methods(edit))
sigs = signatures_at(String(m.file), m.line)
@test !isempty(sigs)
sigs = signatures_at(Base.find_source_file(String(m.file)), m.line)
@test !isempty(sigs)
end

# issue #23
@test !isempty(signatures_at("script.jl", 9))
Expand Down

0 comments on commit 20f3d68

Please sign in to comment.