diff options
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_class.rb | 2 | ||||
| -rw-r--r-- | test/ruby/test_process.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb index d1d196c9af..98acbaf67b 100644 --- a/test/ruby/test_class.rb +++ b/test/ruby/test_class.rb @@ -359,7 +359,7 @@ class TestClass < Test::Unit::TestCase assert_raise_with_message NameError, /uninitialized/ do begin eval('class ::TestClass::PrivateClass; end') - rescue NameError => e + rescue NameError end Object.const_get "NOT_AVAILABLE_CONST_NAME_#{__LINE__}" diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 66624644e9..8d42c588fe 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -2599,7 +2599,7 @@ EOS end if Process.respond_to?(:_fork) def test__fork_pid_cache - parent_pid = Process.pid + _parent_pid = Process.pid r, w = IO.pipe pid = Process._fork if pid == 0 |
