We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f1debf + 2ba2424 commit c2370a8Copy full SHA for c2370a8
system_tests/bigquery.py
@@ -263,15 +263,16 @@ def test_load_table_from_storage_then_dump_table(self):
263
self.to_delete.append(bucket)
264
265
blob = bucket.blob(BLOB_NAME)
266
- self.to_delete.insert(0, blob)
267
268
- with tempfile.TemporaryFile() as csv_file:
+ with tempfile.TemporaryFile(mode='w+') as csv_file:
269
writer = csv.writer(csv_file)
270
writer.writerow(('Full Name', 'Age'))
271
writer.writerows(ROWS)
272
blob.upload_from_file(
273
csv_file, rewind=True, content_type='text/csv')
274
+ self.to_delete.insert(0, blob)
275
+
276
dataset = CLIENT.dataset(DATASET_NAME)
277
dataset.create()
278
self.to_delete.append(dataset)
0 commit comments