[Bug 1736394] Re: unit test failure with oslo.serialization >= 2.21.2
Launchpad Bug Tracker
1736394 at bugs.launchpad.net
Mon Dec 11 16:27:59 UTC 2017
This bug was fixed in the package python-taskflow - 2.17.0-0ubuntu2
---------------
python-taskflow (2.17.0-0ubuntu2) bionic; urgency=medium
* d/p/*: Drop, revert being held in oslo.serialization until
OpenStack projects are compatible with oslo.serialization >= 2.21.2.
* d/control: Bumped Standards-Version to 4.1.2.
* d/*: wrap-and-sort -bast.
-- James Page <james.page at ubuntu.com> Mon, 11 Dec 2017 09:09:43 +0000
** Changed in: python-taskflow (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-taskflow in Ubuntu.
https://bugs.launchpad.net/bugs/1736394
Title:
unit test failure with oslo.serialization >= 2.21.2
Status in taskflow:
New
Status in python-taskflow package in Ubuntu:
Fix Released
Bug description:
Hi; oslo.serialization 2.21.1 is current in queens upper-
constraints.txt so this is not impacted more generally in the
OpenStack ecosystem; in Ubuntu we revved to 2.21.2 at which point we
see the following error during unit testing:
======================================================================
FAIL: taskflow.tests.unit.worker_based.test_protocol.TestProtocol.test_to_dict_with_invalid_json_failures
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
File "taskflow/tests/unit/worker_based/test_protocol.py", line 174, in test_to_dict_with_invalid_json_failures
self.assertEqual(expected, request.to_dict())
File "/home/jamespage/src/openstack/taskflow/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/jamespage/src/openstack/taskflow/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = {'action': 'execute',
'arguments': {'a': 'a'},
'failures': {'taskflow.tests.utils.DummyTask': {'causes': [],
'exc_args': (),
'exc_type_names': ['RuntimeError',
'StandardError',
'Exception'],
'exception_str': u'I am not valid JSON',
'traceback_str': '',
'version': 1}},
'task_cls': 'taskflow.tests.utils.DummyTask',
'task_name': 'taskflow.tests.utils.DummyTask',
'task_version': (1, 0)}
actual = {'action': 'execute',
'arguments': {'a': 'a'},
'failures': {'taskflow.tests.utils.DummyTask': {'causes': [],
'exc_args': (Exception('I am not valid JSON',),),
'exc_type_names': ['RuntimeError',
'StandardError',
'Exception'],
'exception_str': u'I am not valid JSON',
'traceback_str': '',
'version': 1}},
'task_cls': 'taskflow.tests.utils.DummyTask',
'task_name': 'taskflow.tests.utils.DummyTask',
'task_version': (1, 0)}
Ran 1 (-1663) tests in 0.010s (-88.254s)
FAILED (id=1, failures=1 (+1))
To manage notifications about this bug go to:
https://bugs.launchpad.net/taskflow/+bug/1736394/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list