summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-12-12 02:56:09 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2016-12-12 02:56:09 +0100
commit4ce68ef999e1f8e3f37830e8123a56439652ccab (patch)
treed7558b961a714afed7a569e5ddccd2991bf4ceda
parentd0d3b182f7e4d1e988bad696880bb884c54a31f6 (diff)
downloadpsutil-4ce68ef999e1f8e3f37830e8123a56439652ccab.tar.gz
#804: try to test failure on Debian
-rwxr-xr-xpsutil/tests/test_process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py
index b0176083..1a95bc19 100755
--- a/psutil/tests/test_process.py
+++ b/psutil/tests/test_process.py
@@ -302,7 +302,7 @@ class TestProcess(unittest.TestCase):
@unittest.skipIf(TRAVIS, 'not reliable on TRAVIS')
def test_terminal(self):
terminal = psutil.Process().terminal()
- if sys.stdin.isatty():
+ if sys.stdin.isatty() or sys.stdout.isatty():
tty = os.path.realpath(sh('tty'))
self.assertEqual(terminal, tty)
else: