aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_vxlan_gpe.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-03-12 17:41:27 -0700
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2019-03-12 17:48:49 -0700
commitc599c6f001bc28e1023fb5e74a27db37b1aae847 (patch)
tree9e70680448f07c542cfaee4c4730482ec71004fb /test/test_vxlan_gpe.py
parent6459315569f49bcc2b3572f169192ded7323598f (diff)
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 "<input>", line 1, in <module> TypeError: exceptions must derive from BaseException Change-Id: I4117b6d60ae896eaa1ef2a73a323d8d241f8c3a7 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/test_vxlan_gpe.py')
-rw-r--r--test/test_vxlan_gpe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_vxlan_gpe.py b/test/test_vxlan_gpe.py
index 6ee33d59c9e..36661a9c1fa 100644
--- a/test/test_vxlan_gpe.py
+++ b/test/test_vxlan_gpe.py
@@ -114,7 +114,7 @@ class TestVxlanGpe(BridgeDomain, VppTestCase):
vni=vni,
is_add=is_add)
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):