mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[test] properly 'skip' test on JRuby
an early return still caused ensure to execute, setting JSON constant to `nil` for later tests!
This commit is contained in:
parent
f8d43e5370
commit
0089854fc5
Notes:
git
2020-09-25 17:29:12 +09:00
1 changed files with 1 additions and 2 deletions
|
@ -49,7 +49,6 @@ EOT
|
|||
end
|
||||
|
||||
def test_remove_const_segv
|
||||
return if RUBY_ENGINE == 'jruby'
|
||||
stress = GC.stress
|
||||
const = JSON::SAFE_STATE_PROTOTYPE.dup
|
||||
|
||||
|
@ -76,7 +75,7 @@ EOT
|
|||
silence do
|
||||
JSON.const_set :SAFE_STATE_PROTOTYPE, const
|
||||
end
|
||||
end if JSON.const_defined?("Ext")
|
||||
end if JSON.const_defined?("Ext") && RUBY_ENGINE != 'jruby'
|
||||
|
||||
def test_generate
|
||||
json = generate(@hash)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue