diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-03-09 19:51:10 -0800 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2018-03-09 19:51:10 -0800 |
| commit | b578d2febfd35f80fcfa1ce1bdf18d44d21b1581 (patch) | |
| tree | 5341acf84032ee89457b973d3c0fd24f332c4db4 /scripts | |
| parent | b409472c271c0f803cfa8ecc83033e508f2ae429 (diff) | |
| download | psutil-b578d2febfd35f80fcfa1ce1bdf18d44d21b1581.tar.gz | |
Move tests out of package to top level directory (#1232)
Cleanly separates tests from the package itself. Prevents the tests
being installed to site-packages. Tests are still distributed with the
source distribution by MANIFEST.in.
Avoids installing tests in production environments, leading to less
total code in the environment.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/internal/winmake.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/internal/winmake.py b/scripts/internal/winmake.py index 548f7a8e..de58fbfc 100755 --- a/scripts/internal/winmake.py +++ b/scripts/internal/winmake.py @@ -355,7 +355,7 @@ def test_process(): """Run process tests""" install() test_setup() - sh("%s -m unittest -v psutil.tests.test_process" % PYTHON) + sh("%s -m unittest -v tests.test_process" % PYTHON) @cmd @@ -363,7 +363,7 @@ def test_system(): """Run system tests""" install() test_setup() - sh("%s -m unittest -v psutil.tests.test_system" % PYTHON) + sh("%s -m unittest -v tests.test_system" % PYTHON) @cmd @@ -371,7 +371,7 @@ def test_platform(): """Run windows only tests""" install() test_setup() - sh("%s -m unittest -v psutil.tests.test_windows" % PYTHON) + sh("%s -m unittest -v tests.test_windows" % PYTHON) @cmd @@ -379,7 +379,7 @@ def test_misc(): """Run misc tests""" install() test_setup() - sh("%s -m unittest -v psutil.tests.test_misc" % PYTHON) + sh("%s -m unittest -v tests.test_misc" % PYTHON) @cmd @@ -387,7 +387,7 @@ def test_unicode(): """Run unicode tests""" install() test_setup() - sh("%s -m unittest -v psutil.tests.test_unicode" % PYTHON) + sh("%s -m unittest -v tests.test_unicode" % PYTHON) @cmd @@ -395,7 +395,7 @@ def test_connections(): """Run connections tests""" install() test_setup() - sh("%s -m unittest -v psutil.tests.test_connections" % PYTHON) + sh("%s -m unittest -v tests.test_connections" % PYTHON) @cmd @@ -403,7 +403,7 @@ def test_contracts(): """Run contracts tests""" install() test_setup() - sh("%s -m unittest -v psutil.tests.test_contracts" % PYTHON) + sh("%s -m unittest -v tests.test_contracts" % PYTHON) @cmd |
