[Python-checkins] [python/cpython] 760f59: [3.5] bpo-29571: Use correct locale encoding in te...

GitHub noreply at github.com
Sat Feb 18 23:33:51 EST 2017


  Branch: refs/heads/3.5
  Home:   https://github.com/python/cpython
  Commit: 760f596b6a4b5514afe35e521621f484aef35413
      https://github.com/python/cpython/commit/760f596b6a4b5514afe35e521621f484aef35413
  Author: Nick Coghlan <ncoghlan at gmail.com>
  Date:   2017-02-19 (Sun, 19 Feb 2017)

  Changed paths:
    M Lib/test/test_re.py
    M Misc/NEWS

  Log Message:
  -----------
  [3.5] bpo-29571: Use correct locale encoding in test_re (#149) (#154)

``local.getlocale(locale.LC_CTYPE)`` and
``locale.getpreferredencoding(False)`` may give different answers
in some cases (such as the ``en_IN`` locale).

``re.LOCALE`` uses the latter, so update the test case to match.




More information about the Python-checkins mailing list