File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
airflow/providers/google/cloud/hooks
tests/providers/google/cloud/hooks Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -196,10 +196,10 @@ repos:
196196 files : ^chart/values\.schema\.json$|^chart/values_schema\.schema\.json$
197197 pass_filenames : true
198198 - repo : https://github.com/asottile/pyupgrade
199- rev : v2.29.0
199+ rev : v2.29.1
200200 hooks :
201201 - id : pyupgrade
202- args : ["--py36 -plus"]
202+ args : ["--py37 -plus"]
203203 exclude : ^airflow/_vendor/
204204 - repo : https://github.com/pre-commit/pygrep-hooks
205205 rev : v1.9.0
Original file line number Diff line number Diff line change @@ -1035,7 +1035,7 @@ def start_sql_job(
10351035 ]
10361036 self .log .info ("Executing command: %s" , " " .join (shlex .quote (c ) for c in cmd ))
10371037 with self .provide_authorized_gcloud ():
1038- proc = subprocess .run (cmd , stdout = subprocess . PIPE , stderr = subprocess . PIPE )
1038+ proc = subprocess .run (cmd , capture_output = True )
10391039 self .log .info ("Output: %s" , proc .stdout .decode ())
10401040 self .log .warning ("Stderr: %s" , proc .stderr .decode ())
10411041 self .log .info ("Exit code %d" , proc .returncode )
Original file line number Diff line number Diff line change 1919
2020import copy
2121import shlex
22- import subprocess
2322import unittest
2423from typing import Any , Dict
2524from unittest import mock
@@ -1108,8 +1107,7 @@ def test_start_sql_job_failed_to_run(
11081107 '--bigquery-table=beam_output' ,
11091108 '--bigquery-write-disposition=write-truncate' ,
11101109 ],
1111- stdout = subprocess .PIPE ,
1112- stderr = subprocess .PIPE ,
1110+ capture_output = True ,
11131111 )
11141112 mock_controller .assert_called_once_with (
11151113 dataflow = mock_get_conn .return_value ,
You can’t perform that action at this time.
0 commit comments