← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1754978] Re: neutron fails to work with pecan-1.3.2

 

Reviewed:  https://review.openstack.org/561825
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=0063aa33c65def9245730754ab2dc2f1b09b76e0
Submitter: Zuul
Branch:    master

commit 0063aa33c65def9245730754ab2dc2f1b09b76e0
Author: Isaku Yamahata <isaku.yamahata@xxxxxxxxx>
Date:   Mon Apr 16 23:05:53 2018 -0700

    pecan.jsonify v1.3 adjustment
    
    From pecan v1.3, pecan.jsonify uses json.Encoder unconditionally so that
    jsonifying mock fails.
    Pecan v1.2 uses simplejson.Encoder as encoder which accidentally encodes
    MagicMock as {} due to check of '_asdict' attributes.
    Since pecan.jsonify uses __json__ magic method when it's defined,
    add __json__ method to mocks to return {} as json encode.
    
    Closes-bug: #1754978
    Change-Id: Iac955a7de2a1b66b5b56a73f5cc8a4e75150f82e


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

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1754978

Title:
  neutron fails to work with pecan-1.3.2

Status in neutron:
  Fix Released
Status in OpenStack Global Requirements:
  New

Bug description:
  Requirements would like to update this package but can't (it is
  currently at version 1.2).

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


References