diff --git a/test/units/vars/test_variable_manager.py b/test/units/vars/test_variable_manager.py index 4371008bb9..e2db28e40e 100644 --- a/test/units/vars/test_variable_manager.py +++ b/test/units/vars/test_variable_manager.py @@ -41,6 +41,8 @@ class TestVariableManager(unittest.TestCase): vars = v.get_vars(loader=fake_loader, use_cache=False) if 'omit' in vars: del vars['omit'] + if 'vars' in vars: + del vars['vars'] self.assertEqual(vars, dict(playbook_dir='.'))