diff options
| author | Christian Hopps <chopps@labn.net> | 2021-07-21 13:33:50 +0000 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2021-09-04 09:04:46 -0400 |
| commit | c8e5983d8efa12eea0e91512802a84d46dd899e9 (patch) | |
| tree | cef541c41d4cac9e0de71f946cebb3837844896f /tests/topotests/lib/topotest.py | |
| parent | a3cecfb608d0ca7b6f94828f7adb9d03a77250df (diff) | |
tests: fix pylint infra errors
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/topotests/lib/topotest.py')
| -rw-r--r-- | tests/topotests/lib/topotest.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index 611230064f..76a9430fa5 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -44,8 +44,10 @@ from lib.topolog import logger if sys.version_info[0] > 2: import configparser + from collections.abc import Mapping else: import ConfigParser as configparser + from collections import Mapping from lib import micronet from lib.micronet_compat import Node @@ -2071,3 +2073,7 @@ def frr_unicode(s): return s else: return unicode(s) # pylint: disable=E0602 + + +def is_mapping(o): + return isinstance(o, Mapping) |
