Public bug reported:

While building the neutron-lbaas package in Debian Sid with Python 3.6,
I get the below failure. As this looks like a broken test rather than a
software bug, I've disabled running the unit test at package build time,
however, it'd be nice to have it fixed.

My wet finger double guess without looking too much, is that there's a
string type issue in this test that Python 3.6 doesn't like.


FAIL: neutron_lbaas.tests.unit.agent.test_agent.TestLbaasService.test_main
neutron_lbaas.tests.unit.agent.test_agent.TestLbaasService.test_main
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/neutron/tests/base.py", line 132, in func
    return f(self, *args, **kwargs)
  File 
"/home/zigo/sources/openstack/queens/services/neutron-lbaas/build-area/neutron-lbaas-12.0.0~rc1/neutron_lbaas/tests/unit/agent/test_agent.py",
 line 45, in test_main
    agent.main()
  File 
"/home/zigo/sources/openstack/queens/services/neutron-lbaas/build-area/neutron-lbaas-12.0.0~rc1/neutron_lbaas/agent/agent.py",
 line 66, in main
    common_config.init(sys.argv[1:])
  File "/usr/lib/python3/dist-packages/neutron/common/config.py", line 78, in 
init
    **kwargs)
  File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2492, in 
__call__
    default_config_files, default_config_dirs)
  File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2374, in 
_pre_setup
    prog = os.path.basename(sys.argv[0])
  File "/usr/lib/python3.6/posixpath.py", line 144, in basename
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not MagicMock

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1750999

Title:
  neutron_lbaas.tests.unit.agent.test_agent.TestLbaasService.test_main
  failure in Python 3.6

Status in neutron:
  New

Bug description:
  While building the neutron-lbaas package in Debian Sid with Python
  3.6, I get the below failure. As this looks like a broken test rather
  than a software bug, I've disabled running the unit test at package
  build time, however, it'd be nice to have it fixed.

  My wet finger double guess without looking too much, is that there's a
  string type issue in this test that Python 3.6 doesn't like.

  
  FAIL: neutron_lbaas.tests.unit.agent.test_agent.TestLbaasService.test_main
  neutron_lbaas.tests.unit.agent.test_agent.TestLbaasService.test_main
  ----------------------------------------------------------------------
  _StringException: Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/neutron/tests/base.py", line 132, in 
func
      return f(self, *args, **kwargs)
    File 
"/home/zigo/sources/openstack/queens/services/neutron-lbaas/build-area/neutron-lbaas-12.0.0~rc1/neutron_lbaas/tests/unit/agent/test_agent.py",
 line 45, in test_main
      agent.main()
    File 
"/home/zigo/sources/openstack/queens/services/neutron-lbaas/build-area/neutron-lbaas-12.0.0~rc1/neutron_lbaas/agent/agent.py",
 line 66, in main
      common_config.init(sys.argv[1:])
    File "/usr/lib/python3/dist-packages/neutron/common/config.py", line 78, in 
init
      **kwargs)
    File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2492, in 
__call__
      default_config_files, default_config_dirs)
    File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2374, in 
_pre_setup
      prog = os.path.basename(sys.argv[0])
    File "/usr/lib/python3.6/posixpath.py", line 144, in basename
      p = os.fspath(p)
  TypeError: expected str, bytes or os.PathLike object, not MagicMock

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1750999/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to