mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[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:
parent
a7ab156d94
commit
f8720b01d9
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue