[Debian-astro-maintainers] Bug#915893: astroquery FTBFS: test failures

Adrian Bunk bunk at debian.org
Fri Dec 7 18:29:06 GMT 2018


Source: astroquery
Version: 0.3.8+dfsg-4
Severity: serious
Tags: ftbfs

Some recent change in unstable makes astroquery FTBFS:

https://tests.reproducible-builds.org/debian/history/astroquery.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/astroquery.html

...
=================================== FAILURES ===================================
 test_prepend_docstr[dummyfunc1-
    Blah Blah Blah

    Returns
    -------
    Nothing!

    Examples
    --------
    Nada
] 

func = <function dummyfunc1 at 0x7ffa61abf140>
out = '\n    Blah Blah Blah\n\n    Returns\n    -------\n    Nothing!\n\n    Examples\n    --------\n    Nada\n'
doc = '\n    Blah Blah Blah\n\n    Returns\n    -------\n    nothing\n\n    Examples\n    --------\n    no_examples_at_all\n'

    @pytest.mark.parametrize("func, out", [(dummyfunc1, docstr4_out1),
                                           (dummyfunc2, docstr4_out2)])
    def test_prepend_docstr(func, out, doc=docstr4):
        fn = prepend_docstr_nosections(doc, sections=['Returns', 'Examples'])(func)
>       assert fn.__doc__ == textwrap.dedent(out)
E       AssertionError: assert '\nBlah Blah ...-----\nNada\n' == '\nBlah Blah B...-----\nNada\n'
E         - 
E         - Blah Blah Blah
E         - 
E         - Blah Blah Blah
E         - 
E         - Blah Blah Blah
E         - ...
E         
E         ...Full output truncated (32 lines hidden), use '-vv' to show

../../../astroquery/utils/tests/test_utils.py:371: AssertionError
 test_prepend_docstr[dummyfunc2-
    Blah Blah Blah

    Returns
    -------
    Nothing!
] 

func = <function dummyfunc2 at 0x7ffa61abf1b8>
out = '\n    Blah Blah Blah\n\n    Returns\n    -------\n    Nothing!\n'
doc = '\n    Blah Blah Blah\n\n    Returns\n    -------\n    nothing\n\n    Examples\n    --------\n    no_examples_at_all\n'

    @pytest.mark.parametrize("func, out", [(dummyfunc1, docstr4_out1),
                                           (dummyfunc2, docstr4_out2)])
    def test_prepend_docstr(func, out, doc=docstr4):
        fn = prepend_docstr_nosections(doc, sections=['Returns', 'Examples'])(func)
>       assert fn.__doc__ == textwrap.dedent(out)
E       AssertionError: assert '\nBlah Blah ...-\nNothing!\n' == '\nBlah Blah B...-\nNothing!\n'
E         - 
E         - Blah Blah Blah
E         - 
E         - Blah Blah Blah
E         - 
E         - Blah Blah Blah
E         - ...
E         
E         ...Full output truncated (28 lines hidden), use '-vv' to show

../../../astroquery/utils/tests/test_utils.py:371: AssertionError
======= 2 failed, 620 passed, 351 skipped, 2 xfailed in 1126.46 seconds ========
E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: cd /build/1st/astroquery-0.3.8+dfsg/.pybuild/cpython2_2.7_astroquery/build; python2.7 -m pytest ../../../astroquery
dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
make: *** [debian/rules:14: build] Error 25



More information about the Debian-astro-maintainers mailing list