mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use &.
instead of modifier if
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
55539f9bb8
commit
ed2987cb62
1 changed files with 2 additions and 3 deletions
|
@ -18,8 +18,8 @@ class TestPTY < Test::Unit::TestCase
|
|||
else
|
||||
assert_equal("a\r\n", r.gets)
|
||||
ensure
|
||||
r.close if r
|
||||
w.close if w
|
||||
r&.close
|
||||
w&.close
|
||||
Process.wait pid if pid
|
||||
end
|
||||
|
||||
|
@ -239,4 +239,3 @@ class TestPTY < Test::Unit::TestCase
|
|||
skip $!
|
||||
end
|
||||
end if defined? PTY
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue