Closed khurtado closed 1 month ago
For more context, the following unit test fails with:
File "/usr/lib64/python3.9/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib64/python3.9/unittest/case.py", line 592, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.9/unittest/case.py", line 550, in _callTestMethod
method()
File "/home/cmsbld/WMCore/test/python/WMCore_t/Misc_t/Runtime_t.py", line 412, in testB_EmulatorTest
self.runJobs(workload=workload)
File "/home/cmsbld/WMCore/test/python/WMCore_t/Misc_t/Runtime_t.py", line 317, in runJobs
miniStartup(thisDir=taskDir)
File "/home/cmsbld/WMCore/test/python/WMCore_t/Misc_t/Runtime_t.py", line 76, in miniStartup
if monitor.isAlive():
'Watchdog' object has no attribute 'isAlive'
This PR should fix this issue
Jenkins results:
Jenkins results:
Fixes #12109
Status
ready
Description
Define Watchdog.isAlive() so it supports python 3.7 and 3.9
Is it backward compatible (if not, which system it affects?)
<YES | NO | MAYBE>
Related issue: https://github.com/dmwm/WMCore/issues/11978