[ruby/json] Remove caller location assertions

Fix: https://github.com/ruby/json/pull/781

Tests are ran a bit differently in ruby/ruby
and this assertion breaks.

0d4fc669ed
This commit is contained in:
Jean Boussier 2025-03-28 08:53:25 +01:00 committed by Hiroshi SHIBATA
parent a7ab156d94
commit f8720b01d9
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -151,12 +151,7 @@ class JSONAdditionTest < Test::Unit::TestCase
end
def test_deprecated_load_create_additions
pattern = /json_addition_test\.rb.*use JSON\.unsafe_load/
if RUBY_ENGINE == 'truffleruby'
pattern = /use JSON\.unsafe_load/
end
assert_deprecated_warning(pattern) do
assert_deprecated_warning(/use JSON\.unsafe_load/) do
JSON.load(JSON.dump(Time.now))
end
end