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)