[PKG-Openstack-devel] Bug#867037: python-txaio FTBFS: test_chained_callback[asyncio] failed

Adrian Bunk bunk at debian.org
Mon Jul 3 16:28:51 UTC 2017


Source: python-txaio
Version: 2.5.1+2016.10.03.git.623ef68776-1
Severity: serious
Tags: buster sid

Some recent change in unstable makes python-txaio FTBFS:

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

...
test/test_is_future.py .....
test/test_legacy_logging.py .
test/test_logging.py ......................................

=================================== FAILURES ===================================
________________________ test_chained_callback[asyncio] ________________________

framework = <module 'txaio.aio' from '/build/1st/python-txaio-2.5.1+2016.10.03.git.623ef68776/txaio/aio.py'>

    def test_chained_callback(framework):
        """
        Chain two callbacks where the first one alters the value.
        """
        calls = []
    
        def callback0(arg):
            calls.append(arg)
            return arg + " pray I do not alter it futher"
    
        def callback1(arg):
            calls.append(arg)
    
        f = txaio.create_future()
        txaio.add_callbacks(f, callback0, None)
        txaio.add_callbacks(f, callback1, None)
        txaio.resolve(f, "the deal")
    
        run_once()
    
        assert len(calls) == 2
        assert calls[0] == "the deal"
>       assert calls[1] == "the deal pray I do not alter it futher"
E       assert 'the deal' == 'the deal pray I do not alter it futher'
E         - the deal
E         + the deal pray I do not alter it futher

test/test_callback.py:84: AssertionError
============================ pytest-warning summary ============================
WC1 /build/1st/python-txaio-2.5.1+2016.10.03.git.623ef68776/test/test_logging.py cannot collect test class 'TestHandler' because it has a __init__ constructor
====== 1 failed, 99 passed, 2 skipped, 1 pytest-warnings in 2.68 seconds =======
debian/rules:14: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1



More information about the Openstack-devel mailing list