diff --git a/utils/test/common_test.py b/utils/test/common_test.py index 9318f0d0a..75e6ceea0 100755 --- a/utils/test/common_test.py +++ b/utils/test/common_test.py @@ -108,14 +108,10 @@ def setup_regex_tests(test_class): def setup_aa(aa): confdir = os.getenv('__AA_CONFDIR') - try: - if confdir: - aa.init_aa(confdir=confdir) - else: - aa.init_aa() - except AttributeError: - # apparmor.aa module versions <= 2.11 do not have the init_aa() method - pass + if confdir: + aa.init_aa(confdir=confdir) + else: + aa.init_aa() def write_file(directory, file, contents):