Py3.7 time module minor BPOs

Merged Bitbucket Importer requested to merge branch/py3.7-time-minor-bpos into branch/py3.7

Created originally on Bitbucket by Yannick_Jadoul (Yannick Jadoul)

Implemented the changes from 4 smaller issues/PRs that should fix last few failing test_time tests on Python 3.7.


Remarks/things to be checked:

  • CPython’s source checks CLOCK_PROCESS_CPUTIME_ID (see, but uses CLOCK_THREAD_CPUTIME_ID. I don’t know if these two identifiers are somehow linked, or whether that’s a copy-paste error.
  • I’ve not tested these changes on Windows/macOS, so we should keep an eye on the buildbots, after.

Merge request reports