diff options
Diffstat (limited to 'tests/test_trapd_settings.py')
-rw-r--r-- | tests/test_trapd_settings.py | 10 |
1 files changed, 5 insertions, 5 deletions
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) |