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

GitHub noreply at github.com
Wed Jun 7 15:46:51 UTC 2017

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 5cf6c71bb4aa1a671351dd80ace04cbd9577b3e9
  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
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

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