diff options
author | Benoit Daloze <[email protected]> | 2023-01-05 21:07:29 +0100 |
---|---|---|
committer | Benoit Daloze <[email protected]> | 2023-01-05 21:07:29 +0100 |
commit | 53938efd7b0ac868b177b3e748996a3aef4bccb6 (patch) | |
tree | 818acd6edc9c66a6b7611f8c50f1fbf0771520c6 /spec/ruby | |
parent | 29a5fcd60b3738378b66499636a10f96a0f2a474 (diff) |
Update to ruby/spec@5e48206
Diffstat (limited to 'spec/ruby')
-rw-r--r-- | spec/ruby/core/integer/left_shift_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/integer/right_shift_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/spec_helper.rb | 4 |
3 files changed, 2 insertions, 6 deletions
diff --git a/spec/ruby/core/integer/left_shift_spec.rb b/spec/ruby/core/integer/left_shift_spec.rb index 9e57631a1c..6774e1f3e1 100644 --- a/spec/ruby/core/integer/left_shift_spec.rb +++ b/spec/ruby/core/integer/left_shift_spec.rb @@ -191,7 +191,7 @@ describe "Integer#<< (with n << m)" do (0 << bignum_value).should == 0 end - with_feature(:no_memory_error, :infinite_memory) do + ruby_bug "#18518", ""..."3.4" do it "raises NoMemoryError when m > 0 and n != 0" do coerce_long = mock("long") coerce_long.stub!(:to_int).and_return(2**40) diff --git a/spec/ruby/core/integer/right_shift_spec.rb b/spec/ruby/core/integer/right_shift_spec.rb index 37246456df..3fef09a30a 100644 --- a/spec/ruby/core/integer/right_shift_spec.rb +++ b/spec/ruby/core/integer/right_shift_spec.rb @@ -213,7 +213,7 @@ describe "Integer#>> (with n >> m)" do (0 >> -bignum_value).should == 0 end - with_feature(:no_memory_error, :infinite_memory) do + ruby_bug "#18518", ""..."3.4" do it "raises NoMemoryError when m < 0 and n != 0" do coerce_long = mock("long") coerce_long.stub!(:to_int).and_return(-(2**40)) diff --git a/spec/ruby/spec_helper.rb b/spec/ruby/spec_helper.rb index 527ed4e3a2..3404521c03 100644 --- a/spec/ruby/spec_helper.rb +++ b/spec/ruby/spec_helper.rb @@ -14,10 +14,6 @@ else end end -unless GC::INTERNAL_CONSTANTS[:RB_BUG_INSTEAD_OF_RB_MEMERROR] - MSpec.enable_feature :no_memory_error -end - unless ENV['MSPEC_RUNNER'] # Running directly with ruby some_spec.rb mspec_lib = File.expand_path("../../mspec/lib", __FILE__) $LOAD_PATH << mspec_lib if File.directory?(mspec_lib) |