Relax assertion pattern for ruby repo

This commit is contained in:
Hiroshi SHIBATA 2025-03-28 11:57:03 +09:00
parent 3bbb52f5c5
commit 09b9468873
Notes: git 2025-03-28 03:45:11 +00:00

View File

@ -152,7 +152,7 @@ class JSONAdditionTest < Test::Unit::TestCase
def test_deprecated_load_create_additions
pattern = /json_addition_test\.rb.*use JSON\.unsafe_load/
if RUBY_ENGINE == 'truffleruby'
if RUBY_ENGINE == 'truffleruby' || File.basename($0) != 'json_addition_test.rb'
pattern = /use JSON\.unsafe_load/
end