Branch: refs/heads/buildbot-custom Home: https://github.com/python/cpython Commit: 5f262ef550ea9a5860dc92d232fd4a307f059f54 https://github.com/python/cpython/commit/5f262ef550ea9a5860dc92d232fd4a307f059f54 Author: Nick Coghlan <ncoghlan at gmail.com> Date: 2017年06月25日 (2017年6月25日) Changed paths: M Lib/test/test_c_locale_coercion.py Log Message: ----------- Conditionally check nl_langinfo in locale coercion tests The problem with dynamically adaptive tests is that they can sometimes pass without actually testing anything useful. On Linux and Mac OS X, if setlocale works, we also expect nl_langinfo(CODESET) to *always* work for the coercion target locales. The tests now reflect this by always assuming the target locale will work if setlocale succeeds when running on Linux or Mac OS X.