372a29744b
Python's Exception constructor already takes a `message` as a parameter, which you can then get at by doing str(e) (e.message was deprecated). The reason I bothered to make this change was because I was debugging with pdb and I noticed that AnsibleErrors don't give useful information in pdb (probably because they don't have a __repr__ method that prints the `msg` attribute). (Pdb) c > /Users/marca/dev/git-repos/ansible/lib/ansible/runner/__init__.py(599)_executor() -> msg = str(ae) (Pdb) ae AnsibleError() |
||
---|---|---|
.. | ||
inventory_test_data | ||
module_tests | ||
vault_test_data | ||
ansible.cfg | ||
README.md | ||
TestConstants.py | ||
TestFilters.py | ||
TestInventory.py | ||
TestModules.py | ||
TestModuleUtilsBasic.py | ||
TestModuleUtilsDatabase.py | ||
TestPlayVarsFiles.py | ||
TestSynchronize.py | ||
TestUtils.py | ||
TestUtilsStringFunctions.py | ||
TestVault.py | ||
TestVaultEditor.py |
Unit tests
Tests at code level. Should be concise and to the point, and organized by subject.