Skip to content

Commit 248ac88

Browse files
committed
Update
1 parent b7de1ba commit 248ac88

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/runtests.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,8 @@ function include_with_method_redefinition_check(jl_filename)
4040
end
4141
contents = read(stderr_filename, String)
4242
print(stderr, contents)
43-
warnings = findall(
44-
r"WARNING: Method definition (.+?) in module (.+?) at (.+?) overwritten at (.+?)\n",
45-
contents,
46-
)
47-
if isempty(warnings)
43+
regex = r"WARNING: Method definition (.+?) in module (.+?) at (.+?) overwritten at (.+?)\n"
44+
if match(regex, contents) !== nothing
4845
error("Found overwritten method")
4946
end
5047
return

0 commit comments

Comments
 (0)