test_do_alarm_gnocchi_aggr_by_metrics_threshold_create fails with python 3.5

Bug #1552285 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ceilometerclient
New
Undecided
Zi Lian Ji

Bug Description

Here's the failure output. It looks like the expected column widths are just off by a bit. http://paste.ubuntu.com/15267451/

Zi Lian Ji (jizilian)
Changed in python-ceilometerclient:
assignee: nobody → Zi Lian Ji (jizilian)
Revision history for this message
Zi Lian Ji (jizilian) wrote :

Does OpenStack supports python 3.5?

Revision history for this message
Julien Danjou (jdanjou) wrote :

You bet not.

As far as telemetry projects goes, we want to support it so that's OK.

Revision history for this message
Zi Lian Ji (jizilian) wrote :

Hi Julien

Sure, I will handle with it.

Revision history for this message
Zi Lian Ji (jizilian) wrote :

Hi Julien

The root cause of this problem is:
https://github.com/openstack/python-ceilometerclient/blob/master/ceilometerclient/common/utils.py#L131

The method textwrap.fill is different between python 3.4 and python 3.5. So the output has changed.

Maybe we need to judge the version of the python to determine what format of the output should be?

Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.