yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #76155
[Bug 1778784] Re: mox_fixture = self.useFixture(moxstubout.MoxStubout()) usage is deprecated from oslo.test 3.5.0
Reviewed: https://review.openstack.org/623309
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=2f693360b4cf7616c6e1ff5573aedeab801e88b8
Submitter: Zuul
Branch: master
commit 2f693360b4cf7616c6e1ff5573aedeab801e88b8
Author: Matt Riedemann <mriedem.os@xxxxxxxxx>
Date: Thu Dec 6 15:35:58 2018 -0500
Ignore MoxStubout deprecation warnings
Like how we ignore mox3 usage warnings, we can ignore
MoxStubout deprecation warnings as well.
In a py35 unit test run, these warnings show up over
1000 times (probably closer to 17K+ based on the number
of unit tests we run) and bloat the console logs.
Change-Id: I598999303c8e91f448e48dea1049a24332ba2f53
Closes-Bug: #1778784
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1778784
Title:
mox_fixture = self.useFixture(moxstubout.MoxStubout()) usage is
deprecated from oslo.test 3.5.0
Status in Glance:
New
Status in OpenStack Compute (nova):
Fix Released
Status in OpenStack Compute (nova) rocky series:
In Progress
Bug description:
Due to this deprecation in oslo.test 3.5.0:
https://github.com/openstack/oslotest/commit/cae8c8d51a94b891ce5b311a91d01b4264b296d2
#diff-72a674ad74b628edbd0f73729c353b85R24
We get this warning quite a bit:
nova/test.py:323: DeprecationWarning: Using class 'MoxStubout' (either directly or via inheritance) is deprecated in version '3.5.0'
mox_fixture = self.useFixture(moxstubout.MoxStubout())
A simple alternative for nova is to just use the same fixture from
mox3:
http://git.openstack.org/cgit/openstack/mox3/tree/mox3/fixture.py#n21
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1778784/+subscriptions
References