summaryrefslogtreecommitdiff
path: root/test/json/json_addition_test.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2025-03-28 11:57:03 +0900
committerHiroshi SHIBATA <[email protected]>2025-03-28 12:44:53 +0900
commit09b94688731a73a4ee63969a22ba7d537223e02a (patch)
treec0367133e223080142d720eb09849193964d0736 /test/json/json_addition_test.rb
parent3bbb52f5c5fb086492c9799ea7b48675cfde50f1 (diff)
Relax assertion pattern for ruby repo
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13004
Diffstat (limited to 'test/json/json_addition_test.rb')
-rw-r--r--test/json/json_addition_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/json/json_addition_test.rb b/test/json/json_addition_test.rb
index a98e06df8c..9a5203dd79 100644
--- a/test/json/json_addition_test.rb
+++ b/test/json/json_addition_test.rb
@@ -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