t/close-has-env.ru: ensure close is idempotent
commit3358447d32b70e96f6cd48f05967306eafbc00d0
authorEric Wong <e@80x24.org>
Mon, 14 Sep 2015 05:33:15 +0000 (14 05:33 +0000)
committerEric Wong <e@80x24.org>
Mon, 14 Sep 2015 05:34:17 +0000 (14 05:34 +0000)
tree1506e4cb0b7af5427c1452b7538122c8903495a3
parent25904f92de4c456d99fe4210430d58296f84a0af
t/close-has-env.ru: ensure close is idempotent

Ruby 2.3.0 will have idempotent IO#close, so closing an IO
twice will be idempotent and not raise an IOError exception.
Ensure we do not rely on the IOError exception to catch
our own errors.
t/close-has-env.ru