Skip to content

Commit 26d0446

Browse files
committed
Relax assertion pattern for ruby repo
1 parent a61ff1a commit 26d0446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/json/json_addition_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def test_core
152152

153153
def test_deprecated_load_create_additions
154154
pattern = /json_addition_test\.rb.*use JSON\.unsafe_load/
155-
if RUBY_ENGINE == 'truffleruby'
155+
if RUBY_ENGINE == 'truffleruby' || File.basename($0) != 'json_addition_test.rb'
156156
pattern = /use JSON\.unsafe_load/
157157
end
158158

0 commit comments

Comments
 (0)