summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-09-16 11:17:23 +0200
committerBenoit Daloze <eregontp@gmail.com>2020-09-16 11:17:23 +0200
commit9e813c1fc49ac5d1eba6ce38b8a1b44a80bafb91 (patch)
treec846b052a69beaff0962ff6ffec9811b61dfb4b0 /test
parent9d8eeccf0659fa648527a6c2ecf06e5a6c0f8c64 (diff)
RUBY_ISEQ_DUMP_DEBUG=to_binary never kept the debug information for String literals
* That is, for plain string literals, not interpolated. * The test below is very similar and uses the same check.
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_literal.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_literal.rb b/test/ruby/test_literal.rb
index f5dd093078..679af20bb9 100644
--- a/test/ruby/test_literal.rb
+++ b/test/ruby/test_literal.rb
@@ -194,7 +194,7 @@ class TestRubyLiteral < Test::Unit::TestCase
assert_predicate(str, :frozen?)
assert_raise_with_message(FrozenError, /created at #{Regexp.quote(f)}:#{n}/) {
str << "x"
- }
+ } unless ENV['RUBY_ISEQ_DUMP_DEBUG']
end
def test_debug_frozen_string_in_array_literal