]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Eliminate OrderedDict from test_api_v2.py
authorKevin L. Mitchell <kevin.mitchell@rackspace.com>
Mon, 22 Sep 2014 17:18:11 +0000 (12:18 -0500)
committerKevin L. Mitchell <kevin.mitchell@rackspace.com>
Mon, 22 Sep 2014 17:18:11 +0000 (12:18 -0500)
Neutron cannot possibly be passing tests under Python 2.6, as
neutron/tests/unit/test_api_v2.py is referencing
collections.OrderedDict, which does not exist in Python 2.6.
Since there is no reason to use an OrderedDict in this case,
this replaces it with a simple dict.

Change-Id: I1b9886f508c4c8b96cf50c50f157c1960da433fc
Closes-Bug: #1372571

neutron/tests/unit/test_api_v2.py

index e2ee2aacb486077a4debc48ffef11e21710714f8..842ec9cf80fa4565b4299498348d50ac6090dd57 100644 (file)
@@ -13,7 +13,6 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-import collections
 import os
 
 import mock
@@ -145,7 +144,7 @@ class APIv2TestCase(APIv2TestBase):
     def _get_collection_kwargs(self, skipargs=[], **kwargs):
         args_list = ['filters', 'fields', 'sorts', 'limit', 'marker',
                      'page_reverse']
-        args_dict = collections.OrderedDict(
+        args_dict = dict(
             (arg, mock.ANY) for arg in set(args_list) - set(skipargs))
         args_dict.update(kwargs)
         return args_dict