We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7de1ba commit 248ac88Copy full SHA for 248ac88
test/runtests.jl
@@ -40,11 +40,8 @@ function include_with_method_redefinition_check(jl_filename)
40
end
41
contents = read(stderr_filename, String)
42
print(stderr, contents)
43
- warnings = findall(
44
- r"WARNING: Method definition (.+?) in module (.+?) at (.+?) overwritten at (.+?)\n",
45
- contents,
46
- )
47
- if isempty(warnings)
+ regex = r"WARNING: Method definition (.+?) in module (.+?) at (.+?) overwritten at (.+?)\n"
+ if match(regex, contents) !== nothing
48
error("Found overwritten method")
49
50
return
0 commit comments