Source: multiplex Version: 0.6.0-1 Severity: serious User: debian...@lists.debian.org Usertags: fails-always
Dear maintainer(s),You recently added an autopkgtest to your package multiplex, great. However, it fails. Currently this failure is blocking the migration to testing [1]. Can you please investigate the situation and fix it?
I copied some of the output at the bottom of this report. I'd like to remark that s390x is our only big-endian release architecture, maybe that's related here?
More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation Paul [1] https://qa.debian.org/excuses.php?package=multiplex https://ci.debian.net/data/autopkgtest/testing/s390x/m/multiplex/29540144/log.gz=================================== FAILURES =================================== ___________________________ test_async_stream_reader ___________________________
async def test_async_stream_reader(): p = await asyncio.subprocess.create_subprocess_shell( cmd="printf 1; sleep 0.01; printf 2", stdout=asyncio.subprocess.PIPE, ) iterator = await to_iterator(p.stdout) assert iterator.title == "StreamReader" assert iterator.inner_type == "stream_reader"
await assert_aiter(iterator.iterator, ["1", "2"])
tests/test_iterator.py:121: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
source = <async_generator object stream_reader_generator at 0x3ffa3fbe940> values = ['1', '2'], exception = None async def assert_aiter(source, values, exception=None): """Check the results of a stream using a streamcontext.""" results = [] exception_type = type(exception) if exception else () try: async with streamcontext(source) as streamer: async for item in streamer: results.append(item) except exception_type as exc: assert compare_exceptions(exc, exception) else: assert exception is None
assert results == values
E AssertionError: assert ['12'] == ['1', '2'] E At index 0 diff: '12' != '1' E Right contains one more item: '2' E Use -v to get more diff /usr/lib/python3/dist-packages/aiostream/test_utils.py:48: AssertionError=============================== warnings summary ===============================
tests/test_iterator.py::test_async_generator_input/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:380: DeprecationWarning: There is no current event loop
old_loop = policy.get_event_loop() tests/test_multiplex.py::test_exportstests/test_multiplex.py:12: PytestWarning: The test <Function test_exports> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove asyncio marker. If the test is not marked explicitly, check for global markers applied via 'pytestmark'.
def test_exports(): -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html=========================== short test summary info ============================ FAILED tests/test_iterator.py::test_async_stream_reader - AssertionError: ass... ============= 1 failed, 47 passed, 1 skipped, 2 warnings in 0.42s ============== E: pybuild pybuild:386: test: plugin autopkgtest failed with: exit code=1: cd /tmp/autopkgtest-lxc._5q8_u_d/downtmp/autopkgtest_tmp/build; python3.10 -m pytest tests
make: *** [/tmp/6hcGjG9vf4/run:4: pybuild-autopkgtest] Error 13pybuild-autopkgtest: error: /tmp/6hcGjG9vf4/run pybuild-autopkgtest returned exit code 2
autopkgtest [04:46:44]: test pybuild-autopkgtest
OpenPGP_signature
Description: OpenPGP digital signature