uranusjr commented on code in PR #23301:
URL: https://github.com/apache/airflow/pull/23301#discussion_r864382377
##########
tests/hooks/test_subprocess.py:
##########
@@ -96,3 +96,9 @@ def test_should_exec_subprocess(self, mock_popen,
mock_temporary_directory):
stderr=STDOUT,
stdout=PIPE,
)
+
+ def test_task_decode(self):
+ hook = SubprocessHook()
+ command=['bash', '-c', "source "+__file__[:-2]+'sh']
+ result = hook.run_command(command=command)
+ assert result.exit_code==0
Review Comment:
Instead of needing a separate script, I think you can just use
`sys.executable` to print some weird characters.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]