summaryrefslogtreecommitdiff
path: root/tests/topotests/static_routing_mpls/test_static_routing_mpls.py
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2024-06-18 15:52:38 -0400
committerGitHub <noreply@github.com>2024-06-18 15:52:38 -0400
commita1b21f526ad5d6807b39d3569845b0cb25b4d1bf (patch)
tree390c8c2096f4c2a964a6d8bb50c5ab2167c77ae5 /tests/topotests/static_routing_mpls/test_static_routing_mpls.py
parentc7276d1580126be366fc8669909c02a7f4368fd3 (diff)
parent8381dbd9e258825daff4802c4c44b3d435a7b7e3 (diff)
Merge pull request #16227 from y-bharath14/srib-topotest-e
tests: Avoid importing unused modules
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