diff --git a/test/units/vars/test_variable_manager.py b/test/units/vars/test_variable_manager.py index e2db28e40e..9d500d04d8 100644 --- a/test/units/vars/test_variable_manager.py +++ b/test/units/vars/test_variable_manager.py @@ -43,6 +43,8 @@ class TestVariableManager(unittest.TestCase): del vars['omit'] if 'vars' in vars: del vars['vars'] + if 'ansible_version' in vars: + del vars['ansible_version'] self.assertEqual(vars, dict(playbook_dir='.'))