]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Get completely rid of contextlib.nested
authorAdrien Vergé <adrienverge@gmail.com>
Fri, 29 May 2015 20:54:33 +0000 (22:54 +0200)
committerAdrien Vergé <adrienverge@gmail.com>
Fri, 29 May 2015 21:18:46 +0000 (23:18 +0200)
commit422588e13338dab4a5ba1973c96256690ba4adf5
treea957b470309d6db2f51aea9c69067f25075d93ef
parent880252868b8509125f6463e2709c2d0c4f3957ea
Get completely rid of contextlib.nested

`contextlib.nested` is deprecated since Python 2.7 and incompatible with
Python 3. This patch removes all its occurences by using the helper
script at [1].

This is a necessary step to allow us running all unit tests with
Python 3 (not just a small subset as it is done now).

[1]: https://github.com/adrienverge/context_unnester

Change-Id: I8d1de09ff38ed0af9fb56f423a2c43476408e0fb
Blueprint: neutron-python3
Closes-Bug: #1428424
26 files changed:
neutron/hacking/checks.py
neutron/tests/unit/db/metering/test_metering_db.py
neutron/tests/unit/db/test_db_base_plugin_v2.py
neutron/tests/unit/db/test_l3_dvr_db.py
neutron/tests/unit/db/test_securitygroups_db.py
neutron/tests/unit/extensions/test_external_net.py
neutron/tests/unit/extensions/test_extraroute.py
neutron/tests/unit/extensions/test_l3.py
neutron/tests/unit/extensions/test_securitygroup.py
neutron/tests/unit/plugins/ibm/test_sdnve_agent.py
neutron/tests/unit/plugins/ibm/test_sdnve_plugin.py
neutron/tests/unit/plugins/linuxbridge/agent/test_linuxbridge_neutron_agent.py
neutron/tests/unit/plugins/ml2/drivers/base_type_tunnel.py
neutron/tests/unit/plugins/ml2/drivers/l2pop/test_mech_driver.py
neutron/tests/unit/plugins/ml2/test_extension_driver_api.py
neutron/tests/unit/plugins/ml2/test_plugin.py
neutron/tests/unit/plugins/ml2/test_rpc.py
neutron/tests/unit/plugins/ml2/test_security_group.py
neutron/tests/unit/plugins/oneconvergence/test_nvsd_agent.py
neutron/tests/unit/plugins/oneconvergence/test_nvsd_plugin.py
neutron/tests/unit/plugins/openvswitch/agent/test_ovs_neutron_agent.py
neutron/tests/unit/plugins/openvswitch/test_agent_scheduler.py
neutron/tests/unit/plugins/openvswitch/test_ovs_tunnel.py
neutron/tests/unit/plugins/sriovnicagent/test_eswitch_manager.py
neutron/tests/unit/scheduler/test_dhcp_agent_scheduler.py
neutron/tests/unit/scheduler/test_l3_agent_scheduler.py