This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients ned.deily, skrah, vstinner, xdegaye, yan12125
Date 2016-07-07.14:43:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In sysconfig.parse_config_h(), the variables in pyconfig.h that have a commented-out '#undef' line are set to 0.  Fortunately, there is no Android API level 0.

Checking '== 0' ensures that autoreconf has been run to add '#undef ANDROID_API_LEVEL' to If this autoreconf step were to be missed, the test would (correctly) fail on the buildbots that are not Android as get_config_var() would return None then and the test would not be skipped and fail.

Most of the tests in the Python test suite do check 'not sysconfig.get_config_var()' instead, except:
    Lib/test/|543 col 22| @unittest.skipIf(sysconfig.get_config_var('TANH_PRESERVES_ZERO_SIGN') == 0, "system tanh() function doesn't copy the sign")
    Lib/test/|978 col 22| @unittest.skipIf(sysconfig.get_config_var('TANH_PRESERVES_ZERO_SIGN') == 0, "system tanh() function doesn't copy the sign")
Date User Action Args
2016-07-07 14:43:39xdegayesetrecipients: + xdegaye, vstinner, ned.deily, skrah, yan12125
2016-07-07 14:43:39xdegayesetmessageid: <>
2016-07-07 14:43:39xdegayelinkissue27442 messages
2016-07-07 14:43:39xdegayecreate