[前][次][番号順一覧][スレッド一覧]

ruby-changes:51433

From: kazu <ko1@a...>
Date: Tue, 12 Jun 2018 23:36:38 +0900 (JST)
Subject: [ruby-changes:51433] kazu:r63639 (trunk): Remove needless lines

kazu	2018-06-12 23:36:32 +0900 (Tue, 12 Jun 2018)

  New Revision: 63639

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63639

  Log:
    Remove needless lines
    
    Because both assert_equal and assert_nil do not pass at the same time.

  Modified files:
    trunk/test/test_pty.rb
Index: test/test_pty.rb
===================================================================
--- test/test_pty.rb	(revision 63638)
+++ test/test_pty.rb	(revision 63639)
@@ -196,7 +196,6 @@ class TestPTY < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_pty.rb#L196
   rescue RuntimeError
     skip $!
   else
-    assert_equal(pid, st1.pid) if st1
     assert_nil(st1)
     assert_equal(pid, st2.pid)
   end
@@ -215,7 +214,6 @@ class TestPTY < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_pty.rb#L214
   rescue RuntimeError
     skip $!
   else
-    assert_equal(pid, st1.pid) if st1
     assert_nil(st1)
     assert_equal(pid, st2.pid)
   end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]