[Python-checkins] [python/cpython] 5f262e: Conditionally check nl_langinfo in locale coercion...

GitHub noreply at github.com
Sat Jun 24 10:08:23 EDT 2017


  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 (Sun, 25 Jun 2017)

  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.




More information about the Python-checkins mailing list