summaryrefslogtreecommitdiff
path: root/test/objspace
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-28 12:27:11 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-28 12:27:11 +0900
commitc9bbcaccf28c2a374f6530a36355b6d6f16e25cc (patch)
tree216f50c8f99979ec2482805f7ef4969950eb467e /test/objspace
parentff7f71b28889e043798dddfec568083cc7db204a (diff)
downloadruby-c9bbcaccf28c2a374f6530a36355b6d6f16e25cc.tar.gz
Suppress unused variable warning with RUBYOPT=-w
Diffstat (limited to 'test/objspace')
-rw-r--r--test/objspace/test_objspace.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb
index 602773b6cc..833b372105 100644
--- a/test/objspace/test_objspace.rb
+++ b/test/objspace/test_objspace.rb
@@ -400,7 +400,7 @@ class TestObjSpace < Test::Unit::TestCase
def dump_my_heap_please
ObjectSpace.trace_object_allocations_start
GC.start
- str = "TEST STRING".force_encoding("UTF-8")
+ (str = "TEST STRING").force_encoding("UTF-8")
ObjectSpace.dump_all().path
end