summaryrefslogtreecommitdiff
path: root/test/units/modules/test_async_wrapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/units/modules/test_async_wrapper.py')
-rw-r--r--test/units/modules/test_async_wrapper.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/units/modules/test_async_wrapper.py b/test/units/modules/test_async_wrapper.py
index 37b1fda3..dbaf6834 100644
--- a/test/units/modules/test_async_wrapper.py
+++ b/test/units/modules/test_async_wrapper.py
@@ -7,26 +7,21 @@ __metaclass__ = type
import os
import json
import shutil
+import sys
import tempfile
-import pytest
-
-from units.compat.mock import patch, MagicMock
from ansible.modules import async_wrapper
-from pprint import pprint
-
class TestAsyncWrapper:
def test_run_module(self, monkeypatch):
def mock_get_interpreter(module_path):
- return ['/usr/bin/python']
+ return [sys.executable]
module_result = {'rc': 0}
module_lines = [
- '#!/usr/bin/python',
'import sys',
'sys.stderr.write("stderr stuff")',
"print('%s')" % json.dumps(module_result)