From dac22d93c804780f2dc20164aeb44fc80a30890d Mon Sep 17 00:00:00 2001 From: "Hansen, Tony (th1395)" Date: Fri, 19 Aug 2022 12:56:56 +0000 Subject: lots of cleanup, no functional code changes Change-Id: I9eefe4d34ae226bbd5a6f80422f89baeeaeb3471 Signed-off-by: Hansen, Tony (th1395) Issue-ID: DCAEGEN2-2837 --- tests/test_trapd_settings.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/test_trapd_settings.py') diff --git a/tests/test_trapd_settings.py b/tests/test_trapd_settings.py index f3aebdd..743fa68 100644 --- a/tests/test_trapd_settings.py +++ b/tests/test_trapd_settings.py @@ -1,5 +1,5 @@ # ============LICENSE_START======================================================= -# Copyright (c) 2017-2021 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017-2022 AT&T Intellectual Property. All rights reserved. # Copyright (c) 2019 Pantheon.tech. All rights reserved. # Copyright (c) 2021 Fujitsu Ltd. # ================================================================================ @@ -37,7 +37,7 @@ class test_cleanup_and_exit(unittest.TestCase): try: tds.no_such_var result = True - except: + except Exception: result = False self.assertEqual(result, False) @@ -50,7 +50,7 @@ class test_cleanup_and_exit(unittest.TestCase): try: tds.c_config result = True - except: + except Exception: result = False self.assertEqual(result, True) @@ -63,7 +63,7 @@ class test_cleanup_and_exit(unittest.TestCase): try: tds.dns_cache_ip_to_name result = True - except: + except Exception: result = False self.assertEqual(result, True) @@ -76,6 +76,6 @@ class test_cleanup_and_exit(unittest.TestCase): try: tds.dns_cache_ip_expires result = True - except: + except Exception: result = False self.assertEqual(result, True) -- cgit 1.2.3-korg