Python 3.4 error when building Debian package for 3.1.0 release

Bug #1534008 reported by Thomas Goirand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
Incomplete
Undecided
Unassigned

Bug Description

Hi,

While trying to add Python 3 support for the neutronclient package in Debian (which will be sync into Ubuntu), I've experienced the below unit test issues.

======================================================================
FAIL: neutronclient.tests.unit.test_cli20_port.CLITestV20PortJSON.test_list_ports_with_fixed_ips_in_csv
neutronclient.tests.unit.test_cli20_port.CLITestV20PortJSON.test_list_ports_with_fixed_ips_in_csv
----------------------------------------------------------------------
_StringException: Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "/home/zigo/sources/openstack/mitaka/python-neutronclient/build-area/python-neutronclient-3.1.0/neutronclient/tests/unit/test_cli20_port.py", line 362, in test_list_ports_with_fixed_ips_in_csv
    output_format='csv')
  File "/home/zigo/sources/openstack/mitaka/python-neutronclient/build-area/python-neutronclient-3.1.0/neutronclient/tests/unit/test_cli20.py", line 415, in _test_list_resources
    _str = self.fake_stdout.make_string()
  File "/home/zigo/sources/openstack/mitaka/python-neutronclient/build-area/python-neutronclient-3.1.0/neutronclient/tests/unit/test_cli20.py", line 76, in make_string
    result = result + line
TypeError: Can't convert 'bytes' object to str implicitly

======================================================================
FAIL: neutronclient.tests.unit.test_cli20_port.CLITestV20PortXML.test_list_ports_with_fixed_ips_in_csv
neutronclient.tests.unit.test_cli20_port.CLITestV20PortXML.test_list_ports_with_fixed_ips_in_csv
----------------------------------------------------------------------
_StringException: Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "/home/zigo/sources/openstack/mitaka/python-neutronclient/build-area/python-neutronclient-3.1.0/neutronclient/tests/unit/test_cli20_port.py", line 362, in test_list_ports_with_fixed_ips_in_csv
    output_format='csv')
  File "/home/zigo/sources/openstack/mitaka/python-neutronclient/build-area/python-neutronclient-3.1.0/neutronclient/tests/unit/test_cli20.py", line 415, in _test_list_resources
    _str = self.fake_stdout.make_string()
  File "/home/zigo/sources/openstack/mitaka/python-neutronclient/build-area/python-neutronclient-3.1.0/neutronclient/tests/unit/test_cli20.py", line 76, in make_string
    result = result + line
TypeError: Can't convert 'bytes' object to str implicitly

Revision history for this message
Akihiro Motoki (amotoki) wrote :

Which version are you using?
Is bug 1503415 related?

In the master branch, gate-python-neutronclient-python34 is not failing.

In addition, when I used commit a0134f89af21a274d5f0cc7c2e1696755543c713, "tox -e py34" succeeded on Ubuntu 14.04.

Changed in python-neutronclient:
status: New → Incomplete
Revision history for this message
Akihiro Motoki (amotoki) wrote :

Aga... The bug title contains the version information.
3.1.0 has this bug reported in bug 1503415.

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.