Skip to content

Commit 13a9a14

Browse files
committed
Fix version guards for rb_str_locktmp()/rb_str_unlocktmp() to pass on Ruby 3.5.0dev
1 parent 22cf6b0 commit 13a9a14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

optional/capi/string_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ def inspect
12221222
-> { str.upcase! }.should raise_error(RuntimeError, 'can\'t modify string; temporarily locked')
12231223
end
12241224

1225-
ruby_bug "#20998", ""..."3.5" do
1225+
ruby_bug "#20998", ""..."3.6" do # TODO: check when Ruby 3.5 is released
12261226
it "raises FrozenError if string is frozen" do
12271227
str = -"rb_str_locktmp"
12281228
-> { @s.rb_str_locktmp(str) }.should raise_error(FrozenError)
@@ -1246,7 +1246,7 @@ def inspect
12461246
-> { @s.rb_str_unlocktmp(+"test") }.should raise_error(RuntimeError, 'temporal unlocking already unlocked string')
12471247
end
12481248

1249-
ruby_bug "#20998", ""..."3.5" do
1249+
ruby_bug "#20998", ""..."3.6" do # TODO: check when Ruby 3.5 is released
12501250
it "raises FrozenError if string is frozen" do
12511251
str = -"rb_str_locktmp"
12521252
-> { @s.rb_str_unlocktmp(str) }.should raise_error(FrozenError)

0 commit comments

Comments
 (0)