@@ -428,15 +428,21 @@ def _test_forever(self, tests):
428
428
def display_header (self ):
429
429
# Print basic platform information
430
430
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" )
433
436
print ("== cwd:" , os .getcwd ())
434
437
cpu_count = os .cpu_count ()
435
438
if cpu_count :
436
439
print ("== CPU count:" , cpu_count )
437
- print ("== encodings: locale=%s, FS=%s"
440
+ try :
441
+ print ("== encodings: locale=%s, FS=%s"
438
442
% (locale .getpreferredencoding (False ),
439
443
sys .getfilesystemencoding ()))
444
+ except :
445
+ print ("== RustPython: Need to fix encoding stuff" )
440
446
441
447
def get_tests_result (self ):
442
448
result = []
@@ -608,15 +614,16 @@ def _main(self, tests, kwargs):
608
614
609
615
# If we're on windows and this is the parent runner (not a worker),
610
616
# 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}')
620
627
621
628
self .run_tests ()
622
629
self .display_result ()
0 commit comments