• Benoit Pierre's avatar
    tests: fix `fail_on_ascii` fixture · e992c1ae
    Benoit Pierre authored
    In my environment, with:
    
    - LANGUAGE=en_US:en_GB:en:C
    - LC_ALL=en_US.UTF-8
    
    Running the testsuite with:
    
    - python3.6 -m pytest: is successful
    - tox -e py36: fails
    
    The later because LC_ALL is unset by tox, and LANGUAGE is not passed
    through, so `locale.getpreferredencoding()` returns 'ANSI_X3.4-1968'.
    e992c1ae
__init__.py 11.1 KB