This fixes the flake8 error on pyhton version older than 3.6
as ModuleNotFoundError in not available before 3.6 and that is now
replaced to ImportError which is present in earlier versions.

../../tests/mfex_fuzzy.py:5:8: F821 undefined name 'ModuleNotFoundError'
2653Makefile:5826: recipe for target 'flake8-check' failed

Fixes: 50be6715c0 ("test/sytem-dpdk: Add unit test for mfex autovalidator")
Signed-off-by: kumar Amber <kumar.am...@intel.com>
---
 tests/mfex_fuzzy.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/mfex_fuzzy.py b/tests/mfex_fuzzy.py
index 5b056bb48..fd257ffb6 100755
--- a/tests/mfex_fuzzy.py
+++ b/tests/mfex_fuzzy.py
@@ -2,7 +2,7 @@
 try:
     from scapy.all import RandMAC, RandIP, PcapWriter, RandIP6, RandShort, fuzz
     from scapy.all import IPv6, Dot1Q, IP, Ether, UDP, TCP
-except ModuleNotFoundError as err:
+except ImportError as err:
     print(err + ": Scapy")
 import sys
 
-- 
2.25.1

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to