diff --git a/spec/ruby/optional/capi/thread_spec.rb b/spec/ruby/optional/capi/thread_spec.rb index 3b788122ac..30e29681eb 100644 --- a/spec/ruby/optional/capi/thread_spec.rb +++ b/spec/ruby/optional/capi/thread_spec.rb @@ -155,7 +155,7 @@ describe "C-API Thread function" do end end - guard_not -> { platform_is :mingw and ruby_version_is ""..."2.7" } do + platform_is_not :mingw do it "runs a C function with the global lock unlocked and unlocks IO with the generic RUBY_UBF_IO" do thr = Thread.new do @t.rb_thread_call_without_gvl_with_ubf_io