DeprecationWarning: Using class 'DbFixture' (either directly or via inheritance) is deprecated: Please use oslo_db.sqlalchemy.test_fixtures directly

Bug #1797102 reported by Takashi Natsume
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Takashi Natsume

Bug Description

In py35 testing (tox -e py35), the following deprecated warning is shown.
It should be fixed.

{6} nova.tests.unit.db.test_db_api.TestSqlalchemyTypesRepr.test_cidr_repr [0.032182s] ... ok

Captured stderr:
~~~~~~~~~~~~~~~~
    b"/tmp/nova/.tox/py35/lib/python3.5/site-packages/oslo_db/sqlalchemy/test_base.py:179: DeprecationWarning: Using class 'DbFixture' (either directly or via inheritance) is deprecated: Please use oslo_db.sqlalchemy.test_fixtures directly"
    b' self, skip_on_unavailable_db=self.SKIP_ON_UNAVAILABLE_DB))'
    b''

Tags: testing
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/609352

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/609352
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=7748c754b96ae1e8d4feb8749391a5d61daeeb0b
Submitter: Zuul
Branch: master

commit 7748c754b96ae1e8d4feb8749391a5d61daeeb0b
Author: Takashi NATSUME <email address hidden>
Date: Wed Oct 10 17:28:05 2018 +0900

    Use oslo_db.sqlalchemy.test_fixtures

    Make use of the newer fixtures in oslo_db.sqlalchemy.test_fixtures
    which is what was intended to supersede fixtures
    in oslo_db.sqlalchemy.test_base.

    Change-Id: Icb88c13336fffb499083197ed864b8e4e45dc241
    Closes-Bug: #1797102

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 19.0.0.0rc1

This issue was fixed in the openstack/nova 19.0.0.0rc1 release candidate.

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.