summaryrefslogtreecommitdiff
path: root/psutil/tests/__main__.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-04-24 19:38:21 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2017-04-24 19:38:21 +0200
commit1da757c4408911dae34a707b7a63df89cc530727 (patch)
tree586bcea3fa996e9644d0bab88b4336eae9cbbd82 /psutil/tests/__main__.py
parent1d6df8d52530c6143dcd0260bbcfd384d1315c8f (diff)
downloadpsutil-1018-test-refactoring.tar.gz
#1018: enable 'python -m psutil.tests' to run tests1018-test-refactoring
Diffstat (limited to 'psutil/tests/__main__.py')
-rwxr-xr-xpsutil/tests/__main__.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/psutil/tests/__main__.py b/psutil/tests/__main__.py
new file mode 100755
index 00000000..5f7bb528
--- /dev/null
+++ b/psutil/tests/__main__.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2009, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""
+Run unit tests. This is invoked by:
+
+$ python -m psutil.tests
+"""
+
+from psutil.tests import run_suite
+run_suite()