Commit 264a0b40 authored by Paul Monson's avatar Paul Monson Committed by Steve Dower

bpo-36638: Fix WindowsLoadTracker exception on some Windows versions (GH-12849)

parent 9941f963
......@@ -626,8 +626,13 @@ class Regrtest:
elif sys.platform == 'win32' and (self.ns.worker_args is None):
from test.libregrtest.win_utils import WindowsLoadTracker
load_tracker = WindowsLoadTracker()
self.getloadavg = load_tracker.getloadavg
try:
load_tracker = WindowsLoadTracker()
self.getloadavg = load_tracker.getloadavg
except FileNotFoundError as error:
# Windows IoT Core and Windows Nano Server do not provide
# typeperf.exe for x64, x86 or ARM
print('Failed to create WindowsLoadTracker: {}'.format(error))
self.run_tests()
self.display_result()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment