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 bugs.python.org issues/PRs that should fix last few failing test_time tests on Python 3.7.

See

Remarks/things to be checked:

  • CPython’s source checks CLOCK_PROCESS_CPUTIME_ID (see https://github.com/python/cpython/blob/3.7/Modules/timemodule.c#L1328), 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