[Python-modules-team] Bug#952189: sphinx: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 2.7 returned exit code 13

Dmitry Shachnev mitya57 at debian.org
Mon Feb 24 16:37:12 GMT 2020


Control: tags -1 unreproducible

Hi Lucas!

On Sun, Feb 23, 2020 at 02:14:25PM +0100, Lucas Nussbaum wrote:
> Source: sphinx
> Version: 1.8.5-5
> Severity: serious
> Justification: FTBFS on amd64
> Tags: bullseye sid ftbfs
> Usertags: ftbfs-20200222 ftbfs-bullseye
>
> Hi,
>
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
>
> Relevant part (hopefully):
>
> > =================================== FAILURES ===================================
> > _______________________ test_correct_year[expect_date1] ________________________
> >
> > expect_date = '2006-2011', app = <SphinxTestApp buildername='html'>
> >
> >     @pytest.mark.sphinx('html', testroot='correct-year')
> >     def test_correct_year(expect_date, app):
> >         app.build()
> >         content = (app.outdir / 'contents.html').text()
> > >       assert expect_date in content
> > E       assert '2006-2011' in '\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona... <a href="_sources/contents.rst.txt"\n          rel="nofollow">Page source</a>\n    </div>\n\n    \n\n    \n  </body>\n</html>'
> >
> > tests/test_correct_year.py:37: AssertionError

I cannot reproduce this, neither in a chroot (pbuilder) nor in Salsa pipeline.

Is there anything specific to your environment that could cause this?

The test deals with SOURCE_DATE_EPOCH, but the test sets (or unsets) it
manually anyway, so the external setting should not affect anything.

I also thought about time zones, but for me the tests pass even when I am
not using the UTC time zone (I use +0300).

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20200224/18516101/attachment.sig>


More information about the Python-modules-team mailing list