unicode test failures in 0.2.12 under python 3.3

Bug #1375049 reported by Alex Brandt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-heatclient
Won't Fix
Undecided
Unassigned

Bug Description

The unicode tests fail under python 3.3:

FAIL: heatclient.tests.test_events.EventManagerTest.test_get_event_with_unicode_resource_name
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./heatclient/tests/test_events.py", line 111, in test_get_event_with_unicode_resource_name
    manager.get(**fields)
  File "./heatclient/v1/events.py", line 80, in get
    parse.quote(strutils.safe_encode(resource_name), ''),
  File "./heatclient/openstack/common/strutils.py", line 163, in safe_encode
    return text.encode(encoding, errors).decode(incoming)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)
======================================================================
FAIL: heatclient.tests.test_events.EventManagerTest.test_list_event_with_unicode_resource_name
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./heatclient/tests/test_events.py", line 53, in test_list_event_with_unicode_resource_name
    manager.list(stack_id, resource_name)
  File "./heatclient/v1/events.py", line 64, in list
    parse.quote(strutils.safe_encode(resource_name), ''))
  File "./heatclient/openstack/common/strutils.py", line 163, in safe_encode
    return text.encode(encoding, errors).decode(incoming)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)
======================================================================
FAIL: heatclient.tests.test_resources.ResourceManagerTest.test_get_event_with_unicode_resource_name
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./heatclient/tests/test_resources.py", line 69, in test_get_event_with_unicode_resource_name
    manager.get(**fields)
  File "./heatclient/v1/resources.py", line 60, in get
    parse.quote(strutils.safe_encode(resource_name), ''))
  File "./heatclient/openstack/common/strutils.py", line 163, in safe_encode
    return text.encode(encoding, errors).decode(incoming)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)

Revision history for this message
Steve Baker (steve-stevebaker) wrote :

could you please retest with python-heatclient 0.3.0?

Changed in python-heatclient:
status: New → Incomplete
Changed in python-heatclient:
status: Incomplete → Won't Fix
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.