summaryrefslogtreecommitdiff
path: root/psutil/tests/test_system.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2019-03-13 13:34:13 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2019-03-13 13:34:13 +0100
commitd8066a0305616d6981f26c00366d07ae3e6588a7 (patch)
tree1357f77b309147155eb35a5a204e633a692e7fbd /psutil/tests/test_system.py
parentc4467c90ef53cd9eba8ab8be620d71b8477d6ce9 (diff)
downloadpsutil-d8066a0305616d6981f26c00366d07ae3e6588a7.tar.gz
test runner refactoring (avoid code duplication)
Diffstat (limited to 'psutil/tests/test_system.py')
-rwxr-xr-xpsutil/tests/test_system.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py
index 43de8b99..00a38586 100755
--- a/psutil/tests/test_system.py
+++ b/psutil/tests/test_system.py
@@ -867,5 +867,5 @@ class TestSystemAPIs(unittest.TestCase):
if __name__ == '__main__':
- from psutil.tests.runner import run_test_module_by_name
- run_test_module_by_name(__file__)
+ from psutil.tests.runner import run
+ run(__file__)