diff options
| author | Max Bernstein <rubybugs@bernsteinbear.com> | 2025-08-19 12:08:52 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-19 19:08:52 +0000 |
| commit | c1f16fc36d5bbe4c3886e3a2439121d2cb18f622 (patch) | |
| tree | 5e553493247a79cc032dabb90b11ffb67a198e54 | |
| parent | da01faaaccba3be326bfa607f6b36699274e329c (diff) | |
Fix special consts unit tests for i686 (#14271)
32-bit platforms do not have flonum and something about the static symbol test was flaky.
| -rw-r--r-- | test/ruby/test_shapes.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/ruby/test_shapes.rb b/test/ruby/test_shapes.rb index 50b1679c18..aa488e0421 100644 --- a/test/ruby/test_shapes.rb +++ b/test/ruby/test_shapes.rb @@ -1045,9 +1045,10 @@ class TestShapes < Test::Unit::TestCase assert_raise ArgumentError do RubyVM::Shape.of(0) end - assert_raise ArgumentError do - RubyVM::Shape.of(:foo) - end + # 32-bit platforms don't have flonums or static symbols as special + # constants + # TODO(max): Add ArgumentError tests for symbol and flonum, skipping if + # RUBY_PLATFORM =~ /i686/ end def test_root_shape_transition_to_special_const_on_frozen |
