From c599c6f001bc28e1023fb5e74a27db37b1aae847 Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Tue, 12 Mar 2019 17:41:27 -0700 Subject: Tests: Raise exception, don't raise string. This was deprecated ~ python 2.4, and causes a TypeError as sideEffect. >>> raise "foo" Traceback (most recent call last): File "", line 1, in TypeError: exceptions must derive from BaseException Change-Id: I4117b6d60ae896eaa1ef2a73a323d8d241f8c3a7 Signed-off-by: Paul Vinciguerra --- test/test_vxlan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_vxlan.py') diff --git a/test/test_vxlan.py b/test/test_vxlan.py index 7e3ea50c2e4..5ded725abf6 100644 --- a/test/test_vxlan.py +++ b/test/test_vxlan.py @@ -111,7 +111,7 @@ class TestVxlan(BridgeDomain, VppTestCase): mcast_sw_if_index=1, is_add=is_add, vni=vni) if r.sw_if_index == 0xffffffff: - raise "bad sw_if_index" + raise ValueError("bad sw_if_index: ~0") @classmethod def add_shared_mcast_dst_load(cls): -- cgit 1.2.3-korg