Skip to content

Commit aaafcbe

Browse files
takanattiebrianphaley
authored andcommitted
Fix deprecation warnings in pkg_resources
Fix the following deprecation warnings. PkgResourcesDeprecationWarning: <MagicMock name='execute().split().__getitem__().__getitem__()' id='140417024565696'> is an invalid version and will not be supported in a future release DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release Change-Id: I23540114120f6ea52754116cfaaeac35e09543b4 Closes-Bug: 1986428 Signed-off-by: Takashi Natsume <[email protected]> (cherry picked from commit 76cf6b4)
1 parent a70cfff commit aaafcbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

neutron/tests/unit/agent/l3/test_dvr_local_router.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ def test_floating_forward_rules_no_fip_ns(self):
307307
self.assertFalse(ri.floating_forward_rules(fip))
308308

309309
def test_floating_forward_rules(self):
310+
self.utils_exec.return_value = "iptables v1.6.2 (legacy)"
310311
router = mock.MagicMock()
311312
router.get.return_value = [{'host': HOSTNAME},
312313
{'host': mock.sentinel.otherhost}]

0 commit comments

Comments
 (0)