diff options
author | Robin Jarry <rjarry@redhat.com> | 2023-01-23 11:57:19 +0100 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2023-01-27 16:13:07 +0100 |
commit | c3ed0bf34b8a77af4dd4e6d7a6991ce92b7f1aaf (patch) | |
tree | 269884bfe4180367c746d9a23b825a260e22bbb7 /tests | |
parent | e5b3cb9995445cd83ab1d2811bfd79ca03dd46d4 (diff) | |
download | openvswitch-c3ed0bf34b8a77af4dd4e6d7a6991ce92b7f1aaf.tar.gz |
tests/mfex: Silence Blowfish/CAST5 deprecation warnings.
On Fedora 37 (at least), MFEX unit tests are failing because of
deprecation warnings:
$ python3 tests/mfex_fuzzy.py test_traffic.pcap 2000
/usr/lib/python3.11/site-packages/scapy/layers/ipsec.py:471:
CryptographyDeprecationWarning: Blowfish has been deprecated
cipher=algorithms.Blowfish,
/usr/lib/python3.11/site-packages/scapy/layers/ipsec.py:485:
CryptographyDeprecationWarning: CAST5 has been deprecated
cipher=algorithms.CAST5,
Signed-off-by: Robin Jarry <rjarry@redhat.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/mfex_fuzzy.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/mfex_fuzzy.py b/tests/mfex_fuzzy.py index ee2183f8e..15f7f4e51 100755 --- a/tests/mfex_fuzzy.py +++ b/tests/mfex_fuzzy.py @@ -1,7 +1,15 @@ #!/usr/bin/python3 import sys +import warnings +import cryptography +warnings.filterwarnings( + "ignore", + category=cryptography.CryptographyDeprecationWarning, + message=r"(blowfish|cast5)", +) +# flake8: noqa: E402 from scapy.all import RandMAC, RandIP, PcapWriter, RandIP6, RandShort, fuzz from scapy.all import IPv6, Dot1Q, IP, Ether, UDP, TCP, random |