diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-09 20:13:30 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-09 20:13:30 +0900 |
commit | 883214f8e94cdc4ffe6d572f5a67b16c9d62676f (patch) | |
tree | 1050bce2c2ea9b6a1794a533ef608bdac7c3888f /test | |
parent | 595e74ae4b86679a2dae57c13820d44d05ef919f (diff) | |
download | ruby-883214f8e94cdc4ffe6d572f5a67b16c9d62676f.tar.gz |
Use %w instead of %i not to create unused IDs
Diffstat (limited to 'test')
-rw-r--r-- | test/io/console/test_io_console.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index fe57225a6e..66721b167c 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -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! |