[Python-modules-team] Bug#894683: python-motor's autopkg test fail

Matthias Klose doko at debian.org
Tue Apr 3 09:13:22 BST 2018


Package: src:python-motor
Version: 1.2.1-1
Severity: important
Tags: sid buster

I see these tests failing on the Ubuntu autopkg test infrastructure (however not
on the Debian debci infrastructure), starting with the new version 1.2.1.

pointer to the amd64 logs:
http://autopkgtest.ubuntu.com/packages/p/python-motor/bionic/amd64

======================================================================
FAIL: test_cursor_del (asyncio_tests.test_asyncio_cursor.TestAsyncIOCursor)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.D4kNcD/build.Yye/src/test/asyncio_tests/__init__.py",
line 53, in __call__
    result = self.orig_method()
  File "/tmp/autopkgtest.D4kNcD/build.Yye/src/test/asyncio_tests/__init__.py",
line 229, in wrapped
    self.loop.run_until_complete(task)
  File "/usr/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
    return future.result()
  File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File
"/tmp/autopkgtest.D4kNcD/build.Yye/src/test/asyncio_tests/test_asyncio_cursor.py",
line 342, in test_cursor_del
    request = yield from self.run_thread(server.receives, OpQuery)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3/dist-packages/mockupdb/__init__.py", line 1095, in receives
    % (matcher.prototype, request))
AssertionError: expected to receive OpQuery({}), got Command({"find":
"collection", "filter": {}}, flags=SlaveOkay, namespace="test")

======================================================================
FAIL: test_cursor_del (tornado_tests.test_motor_cursor.MotorCursorTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/tornado/testing.py", line 136, in __call__
    result = self.orig_method(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/tornado/testing.py", line 529, in
post_coroutine
    timeout=timeout)
  File "/usr/lib/python3/dist-packages/tornado/ioloop.py", line 458, in run_sync
    return future_cell[0].result()
  File "/usr/lib/python3/dist-packages/tornado/concurrent.py", line 238, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 4, in raise_exc_info
  File "/usr/lib/python3/dist-packages/tornado/gen.py", line 1063, in run
    yielded = self.gen.throw(*exc_info)
  File "/usr/lib/python3.6/types.py", line 184, in throw
    return self.__wrapped.throw(tp, *rest)
  File
"/tmp/autopkgtest.D4kNcD/build.Yye/src/test/tornado_tests/test_motor_cursor.py",
line 396, in test_cursor_del
    request = yield self.run_thread(server.receives, OpQuery)
  File "/usr/lib/python3/dist-packages/tornado/gen.py", line 1055, in run
    value = future.result()
  File "/usr/lib/python3.6/concurrent/futures/_base.py", line 425, in result
    return self.__get_result()
  File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3/dist-packages/mockupdb/__init__.py", line 1095, in receives
    % (matcher.prototype, request))
AssertionError: expected to receive OpQuery({}), got Command({"find":
"collection", "filter": {}}, flags=SlaveOkay, namespace="test")

----------------------------------------------------------------------
Ran 277 tests in 35.478s

FAILED (failures=2, skipped=35)
ERROR:asyncio:Unhandled error in exception handler
context: {'message': 'Task was destroyed but it is pending!', 'task': <Task
pending coro=<AsyncIOMockServerTestCase.fetch_next.<locals>.fetch_next() running
at /tmp/autopkgtest.D4kNcD/build.Yye/src/test/asyncio_tests/__init__.py:168>
wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at
/usr/lib/python3.6/asyncio/futures.py:403, <TaskWakeupMethWrapper object at
0x7f88e8490b58>()]>>}
Traceback (most recent call last):
  File "/usr/lib/python3.6/asyncio/base_events.py", line 1300, in
call_exception_handler
    self._exception_handler(self, context)
  File "/tmp/autopkgtest.D4kNcD/build.Yye/src/test/asyncio_tests/__init__.py",
line 219, in exc_handler
    coro_exc = context['exception']
KeyError: 'exception'



More information about the Python-modules-team mailing list