Suppress warnings for flip-flop in test_ast.rb
There are warnings emitted from test_flip2_locations and test_flip3_locations. This commit changes ast_parse to suppress all warnings. warning: integer literal in flip-flop warning: string literal in flip-flop
This commit is contained in:
parent
c71addc522
commit
9d7ba7848f
Notes:
git
2025-01-04 22:53:51 +00:00
@ -1594,7 +1594,7 @@ dummy
|
|||||||
private
|
private
|
||||||
def ast_parse(src, **options)
|
def ast_parse(src, **options)
|
||||||
begin
|
begin
|
||||||
verbose_bak, $VERBOSE = $VERBOSE, false
|
verbose_bak, $VERBOSE = $VERBOSE, nil
|
||||||
RubyVM::AbstractSyntaxTree.parse(src, **options)
|
RubyVM::AbstractSyntaxTree.parse(src, **options)
|
||||||
ensure
|
ensure
|
||||||
$VERBOSE = verbose_bak
|
$VERBOSE = verbose_bak
|
||||||
|
Loading…
x
Reference in New Issue
Block a user