[Reproducible-builds] Bug#801333: retitle
Jérémy Bobbio
lunar at debian.org
Wed Oct 14 11:41:37 UTC 2015
retitle 801333 diffoscope: UnicodeDecodeError with haskell-authenticate-oauth/1.5.1.1-4
clone 801333 -1
retitle -1 diffoscope: UnicodeDecodeError in test_text_option_with_file
severity -1 minor
thanks
Holger Levsen:
> someone just reported the same problem on irc: […]
It was not the same problem. With a quick look at the stack trace,
you can see that the error is raised in a different location of the
code. Just like when you see “Segmentation fault”, it's a bad idea to
assume that it's due to the same bug.
> ============================================================================================== 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)
The test suite assumes to be run under a UTF-8 locale. That needs to be
either enforced or fixed.
--
Lunar .''`.
lunar at debian.org : :Ⓐ : # apt-get install anarchism
`. `'`
`-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20151014/4ada23f9/attachment.sig>
More information about the Reproducible-builds
mailing list