Skip to content

Commit 9224ca3

Browse files
committed
Fix pytests
1 parent 13ccd73 commit 9224ca3

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

providers/standard/tests/unit/standard/hooks/test_subprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def test_should_exec_subprocess(self, mock_popen, mock_temporary_directory):
9797
["bash", "-c", 'echo "stdout"'],
9898
cwd="/tmp/airflowtmpcatcat",
9999
env={},
100-
preexec_fn=mock.ANY,
100+
restore_signals=True,
101+
start_new_session=True,
101102
stderr=STDOUT,
102103
stdout=PIPE,
103104
)

providers/teradata/tests/unit/teradata/hooks/test_bteq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test_execute_bteq_script_at_local_success(
150150
stdout=subprocess.PIPE,
151151
stderr=subprocess.STDOUT,
152152
shell=True,
153-
preexec_fn=os.setsid,
153+
start_new_session=True,
154154
)
155155
assert ret_code == 0
156156

0 commit comments

Comments
 (0)