def test_proc_name(self):
subp = get_test_subprocess(cmd=[self.uexe])
if WINDOWS:
# XXX: why is this like this?
from psutil._pswindows import py2_strencode
name = py2_strencode(psutil._psplatform.cext.proc_name(subp.pid))
else:
name = psutil.Process(subp.pid).name()
if not OSX and TRAVIS:
self.assertEqual(name, os.path.basename(self.uexe))
评论列表
文章目录