def test_exe(self):
        sproc = get_test_subprocess(wait=True)
        exe = psutil.Process(sproc.pid).exe
        try:
            self.assertEqual(exe, PYTHON)
        except AssertionError:
            # certain platforms such as BSD are more accurate returning:
            # "/usr/local/bin/python2.7"
            # ...instead of:
            # "/usr/local/bin/python"
            # We do not want to consider this difference in accuracy
            # an error.
            ver = "%s.%s" % (sys.version_info[0], sys.version_info[1])
            self.assertEqual(exe.replace(ver, ''), PYTHON.replace(ver, ''))
dataset/ETHPy150Open packages/psutil/test/test_psutil.py/TestCase.test_exe/original