aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_string.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_string.py')
-rw-r--r--test/test_string.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_string.py b/test/test_string.py
index b44489e3038..cfdec1fdbac 100644
--- a/test/test_string.py
+++ b/test/test_string.py
@@ -35,7 +35,7 @@ class TestString(VppTestCase):
error = self.vapi.cli("test string " + name)
if error.find("failed") != -1:
self.logger.critical("FAILURE in the " + name + " test")
- self.assertEqual(error.find("failed"), -1)
+ self.assertNotIn("failed", error)
if __name__ == '__main__':
unittest.main(testRunner=VppTestRunner)