From 9d7ba7848f970012848094e07ed3c34e4fc2d57c Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Sat, 4 Jan 2025 17:17:37 -0500 Subject: [PATCH] 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 --- test/ruby/test_ast.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_ast.rb b/test/ruby/test_ast.rb index 898c4fcc3d..8a58a9e6ba 100644 --- a/test/ruby/test_ast.rb +++ b/test/ruby/test_ast.rb @@ -1594,7 +1594,7 @@ dummy private def ast_parse(src, **options) begin - verbose_bak, $VERBOSE = $VERBOSE, false + verbose_bak, $VERBOSE = $VERBOSE, nil RubyVM::AbstractSyntaxTree.parse(src, **options) ensure $VERBOSE = verbose_bak