File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
google/cloud/bigquery/job Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,8 @@ def job_timeout_ms(self, value):
219
219
)
220
220
221
221
""" Docs indicate a string is expected by the API """
222
- self ._properties ["jobTimeoutMs" ] = str (value )
222
+ if value is not None :
223
+ self ._properties ["jobTimeoutMs" ] = str (value )
223
224
224
225
@property
225
226
def labels (self ):
Original file line number Diff line number Diff line change @@ -1320,3 +1320,9 @@ def test_job_timeout_ms(self):
1320
1320
# Confirm that integers get converted to strings.
1321
1321
job_config .job_timeout_ms = 5000
1322
1322
assert job_config .job_timeout_ms == "5000" # int is converted to string
1323
+
1324
+ def test_job_timeout_is_none_when_set_none (self ):
1325
+ job_config = self ._make_one ()
1326
+ job_config .job_timeout_ms = None
1327
+ # Confirm value is None and not literal string 'None'
1328
+ assert job_config .job_timeout_ms is None
You can’t perform that action at this time.
0 commit comments