From: Eric Wong Date: 2011-04-30T08:17:12+09:00 Subject: [ruby-core:35956] Re: [Ruby 1.9 - Feature #4531][PATCH 0/7] use poll() instead of select() in certain cases Motohiro KOSAKI wrote: > Issue #4531 has been updated by Motohiro KOSAKI. > > > commnet for patch 0001. > > begin > require 'io/wait' > rescue LoadError > end > > shold be > > begin > require 'io/wait' > rescue LoadError > # skip this test. > return > end > > If we can't load io/wait, why do we need to run the tests for it? > Anyway, I'll commit it. I used a condition at the end of the class definition: end if IO.method_defined?(:wait) I copied the style from test/io/nonblock/test_flush.rb -- Eric Wong