diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2016-10-28 19:16:45 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2016-10-28 19:16:45 +0200 |
| commit | 931c8827301bddc26d46775308990fe428e9ec3d (patch) | |
| tree | 2f1c93dd5d97098c42c91f0d9d021f0626f5d604 /scripts | |
| parent | cdeb7ec04724822ae0e5b9b93e2ac83261112361 (diff) | |
| download | psutil-931c8827301bddc26d46775308990fe428e9ec3d.tar.gz | |
refactoring
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/internal/winmake.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/scripts/internal/winmake.py b/scripts/internal/winmake.py index 40a3baa2..8a8e763e 100755 --- a/scripts/internal/winmake.py +++ b/scripts/internal/winmake.py @@ -20,7 +20,6 @@ import ssl import subprocess import sys import tempfile -import textwrap PYTHON = sys.executable @@ -132,7 +131,7 @@ def safe_rmtree(path): def recursive_rm(*patterns): - """Recursively remove a file or dir by pattern.""" + """Recursively remove a file or matching a list of patterns.""" for root, subdirs, subfiles in os.walk('.'): root = os.path.normpath(root) if root.startswith('.git/'): @@ -220,8 +219,9 @@ def uninstall(): sh("%s -m pip uninstall -y psutil" % PYTHON) # Uninstalling psutil on Windows seems to be tricky as we may have - # different versions installed. Also we don't want to be in main - # psutil source dir as "import psutil" will always succeed. + # different versions os psutil installed. Also we don't want to be + # in the main psutil source dir as "import psutil" will always + # succeed so this really removes files from site-packages dir. here = os.getcwd() try: os.chdir('C:\\') @@ -336,12 +336,7 @@ def test_by_name(): except IndexError: sys.exit('second arg missing') install() - sh(textwrap.dedent("""\ - %s -m nose \ - psutil\\tests\\test_process.py \ - psutil\\tests\\test_system.py \ - psutil\\tests\\test_windows.py \ - psutil\\tests\\test_misc.py --nocapture -v -m %s""" % (PYTHON, name))) + sh("%s -m unittest -v %s" % (PYTHON, name)) @cmd |
