On 05/02/2018 01:19 PM, Lucas Nussbaum wrote:
> Source: 2ping
> Version: 4.1-1
> Severity: serious
> Tags: buster sid
> User: debian...@lists.debian.org
> Usertags: qa-ftbfs-20180502 qa-ftbfs
> Justification: FTBFS on amd64
>> ======================================================================
>> ERROR: test_notice_utf8 (tests.test_cli.TestCLIStandard)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 95, in test_notice_utf8
>>     self.run_listener_client(['--notice=UTF-8 \u2603'])
>>   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 79, in run_listener_client
>>     subprocess.check_output(client_base_opts + client_opts)
>>   File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
>>     **kwargs).stdout
>>   File "/usr/lib/python3.6/subprocess.py", line 403, in run
>>     with Popen(*popenargs, **kwargs) as process:
>>   File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
>>     restore_signals, start_new_session)
>>   File "/usr/lib/python3.6/subprocess.py", line 1275, in _execute_child
>>     restore_signals, start_new_session, preexec_fn)
>> UnicodeEncodeError: 'ascii' codec can't encode character '\u2603' in 
>> position 15: ordinal not in range(128)

Hmm, I can't reproduce this.  What did the locale look like in the build
environment?  That test specifically checks for UTF-8 in $LANG and is
skipped if not present.

    @unittest.skipUnless(
        (
            os.environ.get('LANG') and
            ('UTF-8' in os.environ.get('LANG'))
        ), 'UTF-8 environment required'
    )
    def test_notice_utf8(self):
        self.run_listener_client(['--notice=UTF-8 \u2603'])

I've tried this with both normal locale for me (en_US.UTF-8), and LANG=C.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to