ruby-changes:17329
From: shyouhei <ko1@a...>
Date: Fri, 24 Sep 2010 16:37:40 +0900 (JST)
Subject: [ruby-changes:17329] Ruby:r29334 (trunk): * test/test_pty.rb (TestPTY::test_getpty_nonexistent): ditto.
shyouhei 2010-09-24 16:37:26 +0900 (Fri, 24 Sep 2010) New Revision: 29334 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29334 Log: * test/test_pty.rb (TestPTY::test_getpty_nonexistent): ditto. Modified files: trunk/test/test_pty.rb Index: test/test_pty.rb =================================================================== --- test/test_pty.rb (revision 29333) +++ test/test_pty.rb (revision 29334) @@ -154,7 +154,13 @@ def test_getpty_nonexistent bug3672 = '[ruby-dev:41965]' Dir.mktmpdir do |tmpdir| - assert_raise(Errno::ENOENT, bug3672) {PTY.getpty(File.join(tmpdir, "no-such-command"))} + assert_raise(Errno::ENOENT, bug3672) { + begin + PTY.getpty(File.join(tmpdir, "no-such-command")) + rescue RuntimeError + skip $! + end + } end end end if defined? PTY -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/