summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2012-09-07 17:17:00 +0000
committerVishvananda Ishaya <vishvananda@gmail.com>2012-09-07 17:17:00 +0000
commit67f74991f73fa2c8350c434a7f67c85bf50e4934 (patch)
tree0ce173076e1f33fe70f1b085ead4b4a69c7d47c3 /nova/openstack
parent37cc45b8fdaa199b248a7ef5f683d514733b8387 (diff)
downloadnova-67f74991f73fa2c8350c434a7f67c85bf50e4934.tar.gz
nova-67f74991f73fa2c8350c434a7f67c85bf50e4934.tar.xz
nova-67f74991f73fa2c8350c434a7f67c85bf50e4934.zip
Stop lock decorator from leaving tempdirs in tests
In some versions of python 2.7, we must use the nonlocal keyword to give an inline function access to a variable in the enclosing scope. This leads to a tempdir not beaing cleaned up because a boolean in the synchronized decorator doesn't get set properly. Since we are still supporting python 2.6, this patch removes the method call completely so we don't have to worry about locality. The patch also moves acquiring the lock inside the try, except to make sure the tempdir is still cleaned even if there is some issue with getting the lock. Fixes bug 1047530 Change-Id: Ie3da18262e67de076b1e474c24edd2e4e5208646
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions