summaryrefslogtreecommitdiff
path: root/tests/topotests/static_routing_mpls/test_static_routing_mpls.py
diff options
context:
space:
mode:
authorY Bharath <y.bharath@samsung.com>2024-06-15 22:36:32 +0530
committerY Bharath <y.bharath@samsung.com>2024-06-17 15:42:59 +0530
commit8381dbd9e258825daff4802c4c44b3d435a7b7e3 (patch)
tree9e2884a629e76f7b68ea9e40a98c6db7b5411814 /tests/topotests/static_routing_mpls/test_static_routing_mpls.py
parent045029e2442dbca3b6e7685438d171fa05c0f968 (diff)
tests: Avoid importing unused modules
Signed-off-by: y-bharath14 <y.bharath@samsung.com>
Diffstat (limited to 'tests/topotests/static_routing_mpls/test_static_routing_mpls.py')
-rw-r--r--tests/topotests/static_routing_mpls/test_static_routing_mpls.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/topotests/static_routing_mpls/test_static_routing_mpls.py b/tests/topotests/static_routing_mpls/test_static_routing_mpls.py
index c1e249cc8f..a0f11c0126 100644
--- a/tests/topotests/static_routing_mpls/test_static_routing_mpls.py
+++ b/tests/topotests/static_routing_mpls/test_static_routing_mpls.py
@@ -14,11 +14,8 @@ test_static_routing_mpls.py: Testing MPLS configuration with mpls interface sett
"""
import os
-import re
import sys
import pytest
-import json
-from functools import partial
import functools
# Save the Current Working Directory to find configuration files.
@@ -113,7 +110,7 @@ def _check_mpls_state(router, interface, configured=True):
test_func = functools.partial(
_check_mpls_state_interface, router, interface, up=configured
)
- success, result = topotest.run_and_expect(test_func, None, count=10, wait=0.5)
+ success, _ = topotest.run_and_expect(test_func, None, count=10, wait=0.5)
return success