@@ -428,15 +428,21 @@ def _test_forever(self, tests):
428428 def display_header (self ):
429429 # Print basic platform information
430430 print ("==" , platform .python_implementation (), * sys .version .split ())
431- print ("==" , platform .platform (aliased = True ),
432- "%s-endian" % sys .byteorder )
431+ try :
432+ print ("==" , platform .platform (aliased = True ),
433+ "%s-endian" % sys .byteorder )
434+ except :
435+ print ("== RustPython: Need to fix platform.platform" )
433436 print ("== cwd:" , os .getcwd ())
434437 cpu_count = os .cpu_count ()
435438 if cpu_count :
436439 print ("== CPU count:" , cpu_count )
437- print ("== encodings: locale=%s, FS=%s"
440+ try :
441+ print ("== encodings: locale=%s, FS=%s"
438442 % (locale .getpreferredencoding (False ),
439443 sys .getfilesystemencoding ()))
444+ except :
445+ print ("== RustPython: Need to fix encoding stuff" )
440446
441447 def get_tests_result (self ):
442448 result = []
@@ -608,15 +614,16 @@ def _main(self, tests, kwargs):
608614
609615 # If we're on windows and this is the parent runner (not a worker),
610616 # track the load average.
611- if sys .platform == 'win32' and (self .ns .worker_args is None ):
612- from test .libregrtest .win_utils import WindowsLoadTracker
613-
614- try :
615- self .win_load_tracker = WindowsLoadTracker ()
616- except FileNotFoundError as error :
617- # Windows IoT Core and Windows Nano Server do not provide
618- # typeperf.exe for x64, x86 or ARM
619- print (f'Failed to create WindowsLoadTracker: { error } ' )
617+ # TODO: RustPython
618+ # if sys.platform == 'win32' and (self.ns.worker_args is None):
619+ # from test.libregrtest.win_utils import WindowsLoadTracker
620+
621+ # try:
622+ # self.win_load_tracker = WindowsLoadTracker()
623+ # except FileNotFoundError as error:
624+ # # Windows IoT Core and Windows Nano Server do not provide
625+ # # typeperf.exe for x64, x86 or ARM
626+ # print(f'Failed to create WindowsLoadTracker: {error}')
620627
621628 self .run_tests ()
622629 self .display_result ()
0 commit comments