Skip to content

Commit

Permalink
Define RubyVM::Shape dependent test only if available
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed May 4, 2023
1 parent ac730d3 commit e135a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/objspace/test_objspace.rb
Expand Up @@ -287,8 +287,8 @@ def test_dump_flags
JSON.parse(info) if defined?(JSON)
end

def test_dump_too_complex_shape
if defined?(RubyVM::Shape)
if defined?(RubyVM::Shape)
def test_dump_too_complex_shape
RubyVM::Shape::SHAPE_MAX_VARIATIONS.times do
Object.new.instance_variable_set(:"@a#{_1}", 1)
end
Expand Down

0 comments on commit e135a21

Please sign in to comment.