[ovs-git] [openvswitch/ovs] ef9570: tests: Export PYTHONCOERCECLOCALE=0 for python3 te...

GitHub noreply at github.com
Wed Jun 7 15:47:20 UTC 2017


  Branch: refs/heads/branch-2.6
  Home:   https://github.com/openvswitch/ovs
  Commit: ef9570ec1dfc5b483d1b581a097b25bb21b5e5ad
      https://github.com/openvswitch/ovs/commit/ef9570ec1dfc5b483d1b581a097b25bb21b5e5ad
  Author: Timothy Redaelli <tredaelli at redhat.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M tests/atlocal.in

  Log Message:
  -----------
  tests: Export PYTHONCOERCECLOCALE=0 for python3 tests

This patch exports PYTHONCOERCECLOCALE=0 when you have Python3 tests
enabled.
This is needed since testsuite forces LC_ALL=C and Python 3, with PEP 538,
prints the following warning on stderr:

"Python runtime initialized with LC_CTYPE=C (a locale with default ASCII
encoding), which may cause Unicode compatibility problems. Using C.UTF-8,
C.utf8, or UTF-8 (if available) as alternative Unicode-compatible locales is
recommended."

AT_CHECK reports it as an error since stderr is not empty as it should be.

This patch is needed, at least, on Fedora 26 and Rawhide (backported PEP
538 on Python 3.6).
This will also be needed on any distribution with Python 3.7 (PEP 538).

Signed-off-by: Timothy Redaelli <tredaelli at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list