Detect working functions, not just existence by grimreaper · Pull Request #6849 · python/cpython

@grimreaper

autotools as a mechanism to detect that the functions it detects works,
not just exists. For these functions, use those macros.

@pablogsal

@pablogsal

The CI is failing with:

Traceback (most recent call last):
  File "/home/travis/build/python/cpython/Lib/test/test_logging.py", line 3389, in test_time
    r.created = time.mktime(dt.astimezone(None).timetuple())
AttributeError: module 'time' has no attribute 'mktime'
``
autotools as a mechanism to detect that the functions it detects works,
not just exists. For these functions, use those macros.

@grimreaper

@csabella

Thank you for your interest in improving CPython. This is not a trivial change and would require an issue to be created on bugs.python.org, as previously requested. If you are interested in pursuing this, please open an issue on the bug tracker and reopen this pull request with the bpo number in the title as per the devguide. Also, please resolve the merge conflicts once reopened. Thanks!