Skip to content

Commit 20f3d68

Browse files
committed
Avoid failure due to noninteractive
1 parent e1998c0 commit 20f3d68

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/runtests.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,13 @@ end
306306
@test occursin(String(m.file), String(body.args[idx].file))
307307
@test ex == code_expr(gcd, Tuple{Int,Int})
308308

309-
m = first(methods(edit))
310-
sigs = signatures_at(String(m.file), m.line)
311-
@test !isempty(sigs)
312-
sigs = signatures_at(Base.find_source_file(String(m.file)), m.line)
313-
@test !isempty(sigs)
309+
if Base.VERSION < v"1.11.0-0"
310+
m = first(methods(edit))
311+
sigs = signatures_at(String(m.file), m.line)
312+
@test !isempty(sigs)
313+
sigs = signatures_at(Base.find_source_file(String(m.file)), m.line)
314+
@test !isempty(sigs)
315+
end
314316

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

0 commit comments

Comments
 (0)