mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 10:03:59 +02:00
Define RubyVM::Shape
dependent test only if available
This commit is contained in:
parent
ac730d3e75
commit
e135a21a85
1 changed files with 2 additions and 2 deletions
|
@ -287,8 +287,8 @@ class TestObjSpace < Test::Unit::TestCase
|
|||
JSON.parse(info) if defined?(JSON)
|
||||
end
|
||||
|
||||
def test_dump_too_complex_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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue