← Back to team overview

yahoo-eng-team team mailing list archive

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

 

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 <natsume.takashi@xxxxxxxxxxxxx>
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

-- 
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/1797102

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

Status in OpenStack Compute (nova):
  Fix Released

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''

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


References