← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1533638] [NEW] test_bash_completion fails due to deprecation warning generated by neutronclient

 

Public bug reported:

neutron.tests.unit.debug.test_shell.ShellTest.test_bash_completion
------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "neutron/tests/unit/debug/test_shell.py", line 62, in test_bash_completion
        self.assertFalse(stderr)
      File "/home/vagrant/git/neutron/.tox/py27-constraints/lib/python2.7/site-packages/unittest2/case.py", line 696, in assertFalse
        raise self.failureException(msg)
    AssertionError: "/home/vagrant/git/neutron/.tox/py27-constraints/lib/python2.7/site-packages/neutronclient/neutron/v2_0/availability_zone.py:21: DeprecationWarning: Function 'neutronclient.i18n._()' has moved to 'oslo_i18n._factory.f()': moved to neutronclient._i18n; please migrate to local oslo_i18n usage, as defined at http://docs.openstack.org/developer/oslo.i18n/usage.html\n  help=_('Availability Zone for the %s '\n" is not false

We see the warning because we enable them in base test class.

** Affects: neutron
     Importance: High
         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/1533638

Title:
  test_bash_completion fails due to deprecation warning generated by
  neutronclient

Status in neutron:
  New

Bug description:
  neutron.tests.unit.debug.test_shell.ShellTest.test_bash_completion
  ------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "neutron/tests/unit/debug/test_shell.py", line 62, in test_bash_completion
          self.assertFalse(stderr)
        File "/home/vagrant/git/neutron/.tox/py27-constraints/lib/python2.7/site-packages/unittest2/case.py", line 696, in assertFalse
          raise self.failureException(msg)
      AssertionError: "/home/vagrant/git/neutron/.tox/py27-constraints/lib/python2.7/site-packages/neutronclient/neutron/v2_0/availability_zone.py:21: DeprecationWarning: Function 'neutronclient.i18n._()' has moved to 'oslo_i18n._factory.f()': moved to neutronclient._i18n; please migrate to local oslo_i18n usage, as defined at http://docs.openstack.org/developer/oslo.i18n/usage.html\n  help=_('Availability Zone for the %s '\n" is not false

  We see the warning because we enable them in base test class.

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


Follow ups