aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pty.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_pty.rb')
-rw-r--r--test/test_pty.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_pty.rb b/test/test_pty.rb
index 80cc02c72e..6236e7c627 100644
--- a/test/test_pty.rb
+++ b/test/test_pty.rb
@@ -177,7 +177,7 @@ class TestPTY < Test::Unit::TestCase
end
assert_equal(pid, st1.pid) if st1
assert_nil(st1)
- assert_equal(pid, st2.pid)
+ assert_equal(pid, st2.pid) if st2
end
def test_pty_check_raise