diff options
author | Takashi Natsume <takanattie@gmail.com> | 2022-08-13 22:30:51 +0900 |
---|---|---|
committer | Brian Haley <haleyb.dev@gmail.com> | 2023-02-14 19:23:15 +0000 |
commit | 35a5bc1fbb8dbc1269ba8866ec80fe2901806f5c (patch) | |
tree | 1d79e08293dee521d315f6f2ab41a56454b259cc | |
parent | 3566cc065eb7e811822a472bd40e37ecf7668971 (diff) | |
download | neutron-35a5bc1fbb8dbc1269ba8866ec80fe2901806f5c.tar.gz |
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 <takanattie@gmail.com>
(cherry picked from commit 76cf6b4a9e9a8c8f7b01f44d787b66b9b894331b)
(cherry picked from commit aaafcbef3367a8b937a0b3283170031384d5504f)
-rw-r--r-- | neutron/tests/unit/agent/l3/test_dvr_local_router.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/neutron/tests/unit/agent/l3/test_dvr_local_router.py b/neutron/tests/unit/agent/l3/test_dvr_local_router.py index 68fd92368f..12a9899d85 100644 --- a/neutron/tests/unit/agent/l3/test_dvr_local_router.py +++ b/neutron/tests/unit/agent/l3/test_dvr_local_router.py @@ -286,6 +286,7 @@ class TestDvrRouterOperations(base.BaseTestCase): self.assertFalse(ri.floating_forward_rules(fip)) def test_floating_forward_rules(self): + self.utils_exec.return_value = "iptables v1.6.2 (legacy)" router = mock.MagicMock() router.get.return_value = [{'host': HOSTNAME}, {'host': mock.sentinel.otherhost}] |