예제 #1
0
 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)
예제 #2
0
파일: nodes.py 프로젝트: xxoolm/Ryven
 def update_event(self, inp=-1):
     self.set_output_val(0, platform._unknown_as_blank(self.input(0)))