Skip to content

Commit 31c4b1b

Browse files
committed
Use a longer var name for temporary file.
Addresses: https://github.com/GoogleCloudPlatform/gcloud-python/pull/1056/files#r37028059
1 parent 31026aa commit 31c4b1b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

system_tests/bigquery.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,12 @@ def test_load_table_from_storage_then_dump_table(self):
265265
blob = bucket.blob(BLOB_NAME)
266266
self.to_delete.insert(0, blob)
267267

268-
with tempfile.TemporaryFile() as f:
269-
writer = csv.writer(f)
268+
with tempfile.TemporaryFile() as csv_file:
269+
writer = csv.writer(csv_file)
270270
writer.writerow(('Full Name', 'Age'))
271271
writer.writerows(ROWS)
272-
blob.upload_from_file(f, rewind=True, content_type='text/csv')
272+
blob.upload_from_file(
273+
csv_file, rewind=True, content_type='text/csv')
273274

274275
dataset = CLIENT.dataset(DATASET_NAME)
275276
dataset.create()

0 commit comments

Comments
 (0)