summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-08-30 15:20:07 -0400
committergit <svn-admin@ruby-lang.org>2023-08-30 19:20:21 +0000
commit1ed70eb99f54a4221bf2e4644596922f676340cc (patch)
treeadf4e301ced7210042cfd36518ce22a115378b0b
parent49dff732e8734dccc7e30102cadc13290618d54a (diff)
[ruby/yarp] Fix unused variable in YARPRubyAPITest
https://github.com/ruby/yarp/commit/0556f971ce
-rw-r--r--test/yarp/ruby_api_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/yarp/ruby_api_test.rb b/test/yarp/ruby_api_test.rb
index 236407ccac..31b3f0fdec 100644
--- a/test/yarp/ruby_api_test.rb
+++ b/test/yarp/ruby_api_test.rb
@@ -43,8 +43,7 @@ class YARPRubyAPITest < Test::Unit::TestCase
arg.location.join(recv.location)
end
- other_recv, other_args_node, _ = parse_expression("1234 + 567").child_nodes
- other_arg = other_args_node.arguments[0]
+ other_arg = parse_expression("1234 + 567").arguments.arguments[0]
assert_raise RuntimeError, "Incompatible sources" do
other_arg.location.join(recv.location)