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
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 a0134f89af21a27 4d5f0cc7c2e1696 755543c713, "tox -e py34" succeeded on Ubuntu 14.04.