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:
196
196
files : ^chart/values\.schema\.json$|^chart/values_schema\.schema\.json$
197
197
pass_filenames : true
198
198
- repo : https://github.com/asottile/pyupgrade
199
- rev : v2.29.0
199
+ rev : v2.29.1
200
200
hooks :
201
201
- id : pyupgrade
202
- args : ["--py36 -plus"]
202
+ args : ["--py37 -plus"]
203
203
exclude : ^airflow/_vendor/
204
204
- repo : https://github.com/pre-commit/pygrep-hooks
205
205
rev : v1.9.0
Original file line number Diff line number Diff line change @@ -1035,7 +1035,7 @@ def start_sql_job(
1035
1035
]
1036
1036
self .log .info ("Executing command: %s" , " " .join (shlex .quote (c ) for c in cmd ))
1037
1037
with self .provide_authorized_gcloud ():
1038
- proc = subprocess .run (cmd , stdout = subprocess . PIPE , stderr = subprocess . PIPE )
1038
+ proc = subprocess .run (cmd , capture_output = True )
1039
1039
self .log .info ("Output: %s" , proc .stdout .decode ())
1040
1040
self .log .warning ("Stderr: %s" , proc .stderr .decode ())
1041
1041
self .log .info ("Exit code %d" , proc .returncode )
Original file line number Diff line number Diff line change 19
19
20
20
import copy
21
21
import shlex
22
- import subprocess
23
22
import unittest
24
23
from typing import Any , Dict
25
24
from unittest import mock
@@ -1108,8 +1107,7 @@ def test_start_sql_job_failed_to_run(
1108
1107
'--bigquery-table=beam_output' ,
1109
1108
'--bigquery-write-disposition=write-truncate' ,
1110
1109
],
1111
- stdout = subprocess .PIPE ,
1112
- stderr = subprocess .PIPE ,
1110
+ capture_output = True ,
1113
1111
)
1114
1112
mock_controller .assert_called_once_with (
1115
1113
dataflow = mock_get_conn .return_value ,
You canβt perform that action at this time.
0 commit comments