def test_uname_processor(self): """ On some systems, the processor must match the output of 'uname -p'. See Issue 35967 for rationale. """ proc_res = subprocess.check_output(['uname', '-p'], text=True).strip() expect = platform._unknown_as_blank(proc_res) self.assertEqual(platform.uname().processor, expect)
def update_event(self, inp=-1): self.set_output_val(0, platform._unknown_as_blank(self.input(0)))