assertEquals is deprecated, need use assertEqual

Bug #1285040 reported by HouMing Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Undecided
HouMing Wang

Bug Description

assertEquals is deprecated in Python 2.7 , need drop it

http://docs.python.org/2/library/unittest.html#deprecated-aliases

Changed in swift:
assignee: nobody → Hou Ming Wang (houming-wang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swift (master)

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

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

Reviewed: https://review.openstack.org/76472
Committed: https://git.openstack.org/cgit/openstack/swift/commit/?id=87710cc8a2654d872adb74d4fa4856c9beb41fbd
Submitter: Jenkins
Branch: master

commit 87710cc8a2654d872adb74d4fa4856c9beb41fbd
Author: Hou Ming Wang <email address hidden>
Date: Wed Feb 26 17:48:33 2014 +0800

    AssertEquals is deprecated, use assertEqual partI

    assertEquals is deprecated in Python 2.7, need drop it.
    http://docs.python.org/2/library/unittest.html#deprecated-aliases

    Change-Id: Ieec505887f740b99b11ef40878ba3ee7247b78a8
    Closes-Bug: #1285040

Changed in swift:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in swift:
milestone: none → 1.13.1-rc1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swift (feature/ec)

Fix proposed to branch: feature/ec
Review: https://review.openstack.org/85919

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (feature/ec)
Download full text (13.1 KiB)

Reviewed: https://review.openstack.org/85919
Committed: https://git.openstack.org/cgit/openstack/swift/commit/?id=58c0f5edbf2e61a422e00a4b5cdb3315d6ed7005
Submitter: Jenkins
Branch: feature/ec

commit 0e366aa92214234f77709640c3eecd8a24f108b4
Author: Peter Portante <email address hidden>
Date: Mon Mar 31 23:51:43 2014 -0400

    Move module level setup under setup_package method

    Perform all the package level test setup under the setup_package
    method so that we only read the configuration file on disk when
    functional tests are run. This let's us "play nice" with other tests.

    Change-Id: I699d664bcef6754aac4ec6877830e745b764342f

commit bf292ae0cb64c8af8c2e1c8d5cad6b37a59113b1
Author: gholt <email address hidden>
Date: Thu Apr 3 23:06:13 2014 +0000

    Fixed error in container sync exc handling

    If container sync got a non-ClientException and then a ClientException
    during a get/put operation, it previously would break in the error
    handling.

    Change-Id: Ib2fa70270f3ec870bf60d5bbb3e8f514aeeb0927

commit de020f018999e3a1decd59b73bc363ae21c701a3
Author: Peter Portante <email address hidden>
Date: Thu Apr 3 12:07:42 2014 -0400

    Handle getting info on wrong database type

    Change-Id: I32f66f6a7683180a18a2807143d0910c75bf16f0

commit eaf6815465159a793ad715c28dbfb5c0aae94c31
Author: John Dickinson <email address hidden>
Date: Wed Apr 2 16:58:40 2014 -0700

    updates for 1.13.1 release

    Change-Id: I9a84c476e8d370c3a5dbc24db77a7258d521013f

commit 39f5eab890394fce7e2efb9ffc1938d8156ed989
Author: Yuan Zhou <email address hidden>
Date: Tue Apr 1 15:21:19 2014 +0800

    Clean up swift-{account, container}-info

    Reuse common code; add unit tests; ensured coverage was at 100%.

    Change-Id: Id6fcc7cb07fd178e00d43968e3e2cc03226fdc05

commit 44b39417baffb6047ca378e33d6694b5db7fc108
Author: Peter Portante <email address hidden>
Date: Mon Mar 31 23:22:49 2014 -0400

    Read the configuration once for all func tests

    Merge the swift_testing module into the functional test module itself,
    so that we can read the configuration once for all unit tests, sharing
    the same constraints.

    Change-Id: I9fbbfdade9adca329cd79f7d4291ba009327c842

commit 5ea6c88128ed966ba419848064680dec34850fda
Author: Peter Portante <email address hidden>
Date: Mon Mar 31 22:56:17 2014 -0400

    Only change collation for functional tests

    The unconditional module-level change of the locale collation can
    affect other tests run under nose. To avoid this, make the change at
    the package level, and restore it when finished.

    Change-Id: Iacda42aa7155f1cfa7d0dcadbf73b961dfb4b923

commit 07fcf50c3ac8d95d59901992affea82c45719340
Author: Peter Portante <email address hidden>
Date: Wed Apr 2 16:16:21 2014 -0400

    Rework use of constraints to ease testing

    Prior to this patch both mainline code and testing modules imported
    and used constraints directly into their own namespace, or relied on
    the namespace of other modules that were not the constraints
    module. This meant that if a unit test wanted to change a constraint
 ...

Thierry Carrez (ttx)
Changed in swift:
milestone: 1.13.1-rc1 → 1.13.1
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.