summaryrefslogtreecommitdiffstats
path: root/src/plugins/cdp/test/test_cdp.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cdp/test/test_cdp.py')
-rw-r--r--src/plugins/cdp/test/test_cdp.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/cdp/test/test_cdp.py b/src/plugins/cdp/test/test_cdp.py
index 7f77b4bbb01..c0e52876752 100644
--- a/src/plugins/cdp/test/test_cdp.py
+++ b/src/plugins/cdp/test/test_cdp.py
@@ -13,6 +13,8 @@ from re import compile
from time import sleep
from util import ppp
import platform
+import sys
+import unittest
""" TestCDP is a subclass of VPPTestCase classes.
@@ -96,9 +98,13 @@ class TestCDP(VppTestCase):
self.assert_equal(system[:length], self.device_id[:length],
"CDP received invalid device id")
+ @unittest.skipIf(sys.version_info[0] > 2,
+ "not supported in python3/scapy")
def test_cdp_underflow_tlv(self):
self.send_bad_packet(3, ".")
+ @unittest.skipIf(sys.version_info[0] > 2,
+ "not supported in python3/scapy")
def test_cdp_overflow_tlv(self):
self.send_bad_packet(8, ".")