summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-10-01 01:14:19 +0900
committerKoichi Sasada <ko1@atdot.net>2019-10-01 01:14:19 +0900
commit671ca21254a60d967570c8c973f5f2f17beb4931 (patch)
tree4dac6d81b9b583a0e5f7a9159d181c4b080d349d /test
parenta8c436d9a1d333e9391c78d4ffd32568a56534a6 (diff)
remove `unused var` warning
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_method.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index 021f618ad3..1a1ac59334 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -1183,6 +1183,7 @@ class TestMethod < Test::Unit::TestCase
nummodule += 1
mc = mod.kind_of?(Class) ? "class" : "module"
puts_line = "#{mc} #{mod.name} #{(mod.ancestors - [mod]).inspect}"
+ puts_line = puts_line # prevent unused var warning
mod.singleton_methods(false).sort.each {|methname|
nummethod += 1
meth = mod.method(methname)