This commit is contained in:
Benoit Daloze 2023-01-05 21:07:29 +01:00
parent 29a5fcd60b
commit 53938efd7b
3 changed files with 2 additions and 6 deletions

View File

@ -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)

View File

@ -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))

View File

@ -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)