diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-26 10:35:38 -0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-26 10:35:38 -0800 |
commit | 9fd71777ba6aa93450a7be64f0d743d27445fdba (patch) | |
tree | 9009ca12d9afb8dd7d742d7cb08b09d25c34644b | |
parent | afa8df7aa694f067c2979fda8933a2b589580fa8 (diff) | |
download | psutil-9fd71777ba6aa93450a7be64f0d743d27445fdba.tar.gz |
fix backslash warnings
-rw-r--r-- | psutil/tests/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py index b6f76a29..545f5f25 100644 --- a/psutil/tests/__init__.py +++ b/psutil/tests/__init__.py @@ -203,6 +203,9 @@ def _get_py_exe(): return exe else: exe = os.path.realpath(sys.executable) + if WINDOWS: + # avoid subprocess warnings + exe = exe.replace('\\', '\\\\') assert os.path.exists(exe), exe return exe |