taskflow py35 unit test failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
taskflow |
Fix Released
|
Undecided
|
ChangBo Guo(gcb) |
Bug Description
taskflow unit tests failed on Python 3 recently. the root cause is that dict.keys() returns instance
dict_keys, which does work well with kombu when encoding it to json. raise error as below:
ft1.36: taskflow.
pythonlogging:''
stderr
stdout
Traceback (most recent call last):
File "/home/
self.
File "/home/
output = run_example(name)
File "/home/
% (name, rc, stdout, stderr))
RuntimeError: Example wbe_event_sender failed, return code=1
<<<Begin captured STDOUT>>>
Running 1 workers.
Executing some work.
Recieved event 'update_progress'
Details = {'progress': 0.0}
Recieved event 'update_progress'
Details = {'progress': 0.0}
Stopping workers.
<<<End captured STDOUT>>>
<<<Begin captured STDERR>>>
CRITICAL:
Traceback (most recent call last):
File "/home/
yield
File "/home/
payload = encoder(data)
File "/home/
**dict(
File "/usr/lib/
**kw)
File "/usr/lib/
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/
return _iterencode(o, 0)
File "/home/
return super(JSONEncoder, self).default(o)
File "/usr/lib/
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: dict_keys(
For more error logs, please see
http://
Fix in https:/ /review. openstack. org/461987