Fix issue 378: test_terminal fails when stdin is not a tty
Fix issue 378: test_terminal fails when stdin is not a tty

Q-Leap-Networks/psutil,tomprince/psutil,packages/psutil,mrjefftang/psutil,packages/psutil,mrjefftang/psutil,tomprince/psutil,mindw/psutil,landryb/psutil,jorik041/psutil,mindw/psutil,landryb/psutil,jamesblunt/psutil,jorik041/psutil,mindw/psutil,cloudbase/psutil,mindw/psutil,landryb/psutil,cloudbase/psutil,giampaolo/psutil,qbit/psutil,landryb/psutil,mrjefftang/psutil,jamesblunt/psutil,mindw/psutil,msarahan/psutil,0-wiz-0/psutil,msarahan/psutil,giampaolo/psutil,Q-Leap-Networks/psutil,qbit/psutil,tomprince/psutil,packages/psutil,0-wiz-0/psutil,landryb/psutil,cloudbase/psutil,qbit/psutil,jorik041/psutil,jamesblunt/psutil,msarahan/psutil,tomprince/psutil,tomprince/psutil