]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove ensure_dirs double-patch
authorKevin Benton <blak111@gmail.com>
Thu, 25 Jun 2015 23:57:30 +0000 (16:57 -0700)
committerKevin Benton <blak111@gmail.com>
Fri, 26 Jun 2015 00:06:02 +0000 (17:06 -0700)
commit0be1efad93734f11cd63fb3b7bd2983442ce1268
tree9e975f48d177d2ef7fe52ed95e61e917b7dfe455
parent043829d4c3068f7d8e758629959a95bcd601ade5
Remove ensure_dirs double-patch

test_spawn_radvd called mock.patch on ensure_dirs after the
setup method already patched it out. This causes issues when
mock.patch.stopall() is called because the mocks are stored
as a set and are unwound in a non-deterministic fashion.[1]
So some of the time they will be undone correctly, but others
will leave a monkey-patched in mock, causing the ensure_dir
test to fail.

1. http://bugs.python.org/issue21239

Closes-Bug: #1467908
Change-Id: I321b5fed71dc73bd19b5099311c6f43640726cd4
neutron/tests/unit/agent/l3/test_agent.py