mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use %w instead of %i not to create unused IDs
This commit is contained in:
parent
595e74ae4b
commit
883214f8e9
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class TestIO_Console < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_failed_path
|
||||
exceptions = %i[ENODEV ENOTTY EBADF ENXIO].map {|e|
|
||||
exceptions = %w[ENODEV ENOTTY EBADF ENXIO].map {|e|
|
||||
Errno.const_get(e) if Errno.const_defined?(e)
|
||||
}
|
||||
exceptions.compact!
|
||||
|
|
Loading…
Add table
Reference in a new issue