← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1938103] Re: assertDictContainsSubset is deprecated since Python3.2

 

Reviewed:  https://review.opendev.org/c/openstack/blazar/+/925743
Committed: https://opendev.org/openstack/blazar/commit/3999bf1fb7b51ae6eb8e313cfc8526a57336677a
Submitter: "Zuul (22348)"
Branch:    master

commit 3999bf1fb7b51ae6eb8e313cfc8526a57336677a
Author: Pierre Riteau <pierre@xxxxxxxxxxxx>
Date:   Tue Aug 6 10:42:19 2024 +0200

    Replace deprecated assertDictContainsSubset
    
    This deprecated method was removed in Python 3.12 [1].
    
    [1] https://docs.python.org/3/whatsnew/3.12.html#id3
    
    Closes-Bug: #1938103
    Change-Id: Ic5fcf58bfb6bea0cff669feadbe8fee5b01b1ce0


** Changed in: blazar
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1938103

Title:
  assertDictContainsSubset is deprecated since Python3.2

Status in Blazar:
  Fix Released
Status in Designate:
  Fix Released
Status in Glance:
  Fix Released
Status in OpenStack Identity (keystone):
  Fix Released
Status in Mistral:
  Fix Released
Status in neutron:
  Fix Released
Status in python-neutronclient:
  Fix Released
Status in tempest:
  Fix Released

Bug description:
  unittest.TestCase.assertDictContainsSubset is deprecated since Python
  3.2[1] and shows the following warning.

  ~~~
  /usr/lib/python3.9/unittest/case.py:1134: DeprecationWarning: assertDictContainsSubset is deprecated
    warnings.warn('assertDictContainsSubset is deprecated',
  ~~~

  [1] https://docs.python.org/3/whatsnew/3.2.html#unittest

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



References