diff --git a/tool/lib/test/unit/assertions.rb b/tool/lib/test/unit/assertions.rb index e740b17aa6..14442c0029 100644 --- a/tool/lib/test/unit/assertions.rb +++ b/tool/lib/test/unit/assertions.rb @@ -238,8 +238,8 @@ EOT # compatibility with test-unit alias pend skip - def assert_syntax_error(code, error, *args) - prepare_syntax_check(code, *args) do |src, fname, line, mesg| + def assert_syntax_error(code, error, *args, **opt) + prepare_syntax_check(code, *args, **opt) do |src, fname, line, mesg| yield if defined?(yield) e = assert_raise(SyntaxError, mesg) do syntax_check(src, fname, line)