Re: [Qemu-block] [PATCH 1/2] iotests: Replace time.clock() with Timeout

2018-11-20 Thread John Snow
On 11/20/18 12:22 PM, Kevin Wolf wrote: > time.clock() is deprecated since Python 3.3. Current Python versions > warn that the function will be removed in Python 3.8, and those warnings > make the test case 118 fail. > > Replace it with the Timeout mechanism that is compatible with both >

[Qemu-block] [PATCH 1/2] iotests: Replace time.clock() with Timeout

2018-11-20 Thread Kevin Wolf
time.clock() is deprecated since Python 3.3. Current Python versions warn that the function will be removed in Python 3.8, and those warnings make the test case 118 fail. Replace it with the Timeout mechanism that is compatible with both Python 2 and 3, and makes the code even a little nicer.