summaryrefslogtreecommitdiff
path: root/psutil/tests/test_process.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-04-26 02:05:25 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2020-04-26 02:05:25 +0200
commit7cd0dd250fcb57874d81c954196bfba4bd3d406d (patch)
treecf10dff1b73f8af69de43646b9d468a13a60a432 /psutil/tests/test_process.py
parent6e2aa0d80f5c8301c27551f65181ffc7e2cb5d8c (diff)
parent420c9e82fd3321e3062424846870f3104c1b0eb8 (diff)
downloadpsutil-reap-children.tar.gz
Merge branch 'master' into devreap-children
Diffstat (limited to 'psutil/tests/test_process.py')
-rwxr-xr-xpsutil/tests/test_process.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py
index ddb1bbba..8095fc04 100755
--- a/psutil/tests/test_process.py
+++ b/psutil/tests/test_process.py
@@ -70,6 +70,7 @@ from psutil.tests import wait_for_pid
# --- psutil.Process class tests
# ===================================================================
+
class TestProcess(unittest.TestCase):
"""Tests for psutil.Process class."""
@@ -295,7 +296,7 @@ class TestProcess(unittest.TestCase):
@unittest.skipIf(TRAVIS or CIRRUS, 'not reliable on TRAVIS/CIRRUS')
def test_terminal(self):
terminal = psutil.Process().terminal()
- if sys.stdin.isatty() or sys.stdout.isatty():
+ if sys.stdout.isatty():
tty = os.path.realpath(sh('tty'))
self.assertEqual(terminal, tty)
else:
@@ -1624,5 +1625,5 @@ class TestPopen(unittest.TestCase):
if __name__ == '__main__':
- from psutil.tests.runner import run
- run(__file__)
+ from psutil.tests.runner import run_from_name
+ run_from_name(__file__)