[Reproducible-builds] Bug#801333: retitle

Holger Levsen holger at layer-acht.org
Wed Oct 14 08:47:53 UTC 2015


retitle 801333 diffoscope: UnicodeDecodeError: 'ascii' codec can't decode byte 0xfa in position 1: ordinal not in range(128)
thanks

Hi,

someone just reported the same problem on irc:

bnewbold at repro:~/diffoscope$ py.test-3 tests/test_main.py -vv
======================================================================================== test session starts =========================================================================================
platform linux -- Python 3.4.3 -- py-1.4.30 -- pytest-2.7.3 -- /usr/bin/python3
rootdir: /home/bnewbold/diffoscope, inifile: 
collected 12 items 

tests/test_main.py::test_non_existing_files PASSED
tests/test_main.py::test_non_existing_left_with_new_file PASSED
tests/test_main.py::test_non_existing_right_with_new_file PASSED
tests/test_main.py::test_non_existing_files_with_new_file PASSED
tests/test_main.py::test_remove_temp_files_on_sigterm PASSED
tests/test_main.py::test_ctrl_c_handling PASSED
tests/test_main.py::test_text_option_with_file FAILED
tests/test_main.py::test_text_option_with_stdiout PASSED
tests/test_main.py::test_no_report_option PASSED
tests/test_main.py::test_html_option_with_file PASSED
tests/test_main.py::test_html_option_with_stdout PASSED
tests/test_main.py::test_no_differences PASSED

============================================================================================== FAILURES ==============================================================================================
_____________________________________________________________________________________ test_text_option_with_file _____________________________________________________________________________________

tmpdir = local('/tmp/pytest-bnewbold/pytest-4/test_text_option_with_file0'), capsys = <_pytest.capture.CaptureFixture object at 0x7f643f784c18>

    def test_text_option_with_file(tmpdir, capsys):
        report_path = str(tmpdir.join('report.txt'))
        args = ['--text', report_path, TEST_TAR1_PATH, TEST_TAR2_PATH]
        with pytest.raises(SystemExit) as excinfo:
            main(args)
        assert excinfo.value.code == 1
        out, err = capsys.readouterr()
        assert err == ''
        assert out == ''
        with open(report_path, 'r') as f:
>           assert f.read().startswith('--- ')

tests/test_main.py:105: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <encodings.ascii.IncrementalDecoder object at 0x7f643f50de48>
input = b'--- /home/bnewbold/diffoscope/tests/data/test1.tar\n+++ /home/bnewbold/diffoscope/tests/data/test2.tar\n\xe2\x94\x9c...n the Ends of Goods and Evils, or alternatively [About]\n\xe2\x94\x82 +The 
Purposes of Good and Evil).\n\xe2\x95\xb5\n'
final = True

    def decode(self, input, final=False):
>       return codecs.ascii_decode(input, self.errors)[0]
E       UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 102: ordinal not in range(128)

/usr/lib/python3.4/encodings/ascii.py:26: UnicodeDecodeError
================================================================================ 1 failed, 11 passed in 0.61 seconds =================================================================================


[10:40] < bnewbold> this is with the diffoscope 36 package installed, running the tests in a git checkout
[10:42] < bnewbold> this is in a just-created 'sid' lxc container created on a debian jessie laptop (created with lxc-create)


cheers,
	Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20151014/6819c687/attachment.sig>


More information about the Reproducible-builds mailing list