]> git.puffer.fish Git - mirror/frr.git/commit
tests: dict_values are not lists in version 3 7758/head
authorDonald Sharp <sharpd@nvidia.com>
Thu, 17 Dec 2020 19:04:21 +0000 (14:04 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Sat, 19 Dec 2020 00:12:30 +0000 (19:12 -0500)
commit29c0ce20ef94bdd0bec642f40cf623db7320345d
tree13f8517177fd7f25b87fe28779a2e2afbbea7599
parent1a161d809328835834b0e2771f61d05fc7c1b528
tests: dict_values are not lists in version 3

While accidently running the topotests with version 3
I keep getting:

TypeError: `dict_values` object does not support indexing..

version 2 of python dict.values() returns a list.
version 3 does not

Write some code to allow both to be handled.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tests/topotests/lib/bgp.py