Name |
Last commit
|
Last update |
---|---|---|
.. | ||
errors | ||
executor | ||
inventory_test_data/group_vars | ||
mock | ||
module_utils | ||
parsing | ||
playbook | ||
plugins | ||
template | ||
utils | ||
vars | ||
__init__.py |
The full error was ====================================================================== ERROR: test_task_executor_execute (units.executor.test_task_executor.TestTaskExecutor) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/mg/src/ansible/test/units/executor/test_task_executor.py", line 252, in test_task_executor_execute mock_action.run.return_value = dict(ansible_facts=dict()) File "/home/mg/src/ansible/lib/ansible/executor/task_executor.py", line 317, in _execute if self._task.async > 0: TypeError: unorderable types: MagicMock() > int() ---------------------------------------------------------------------- Experiments show that Python 2 MagicMock() > 0 is true, so I'm setting the async property on mock_task to 1. (If I set it to 0, the test fails anyway.)
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
errors | Loading commit data... | |
executor | Loading commit data... | |
inventory_test_data/group_vars | Loading commit data... | |
mock | Loading commit data... | |
module_utils | Loading commit data... | |
parsing | Loading commit data... | |
playbook | Loading commit data... | |
plugins | Loading commit data... | |
template | Loading commit data... | |
utils | Loading commit data... | |
vars | Loading commit data... | |
__init__.py | Loading commit data... |