From 04e867218f565bbf3fd37eb14dd68699092e99b0 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Fri, 24 Nov 2017 14:08:20 +0100 Subject: [PATCH] fix posix failure --- psutil/tests/test_posix.py | 1 + 1 file changed, 1 insertion(+) diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py index 0c3f64348..b4b23084f 100755 --- a/psutil/tests/test_posix.py +++ b/psutil/tests/test_posix.py @@ -155,6 +155,7 @@ def test_name(self): name_psutil = psutil.Process(self.pid).name().lower() # ...because of how we calculate PYTHON_EXE; on OSX this may # be "pythonX.Y". + name_ps = re.sub(r"\d.\d", "", name_ps) name_psutil = re.sub(r"\d.\d", "", name_psutil) self.assertEqual(name_ps, name_psutil)