Skip to content

Commit 2e8f246

Browse files
Jon Wayne Parrottshollyman
Jon Wayne Parrott
authored andcommitted
Fix bigquery load from file sample
Change-Id: I5bcb3d41bed33f638e5dba13da3335adfbdc2ead
1 parent 937fd65 commit 2e8f246

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

samples/snippets/load_data_from_file.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ def load_data_from_file(dataset_name, table_name, source_file_name):
4444
job = table.upload_from_file(
4545
source_file, source_format='text/csv')
4646

47-
job.begin()
48-
4947
wait_for_job(job)
5048

5149
print('Loaded {} rows into {}:{}.'.format(

samples/snippets/load_data_from_file_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,12 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
import pytest
15-
1614
import load_data_from_file
1715

1816
DATASET_ID = 'test_dataset'
1917
TABLE_ID = 'test_import_table'
2018

2119

22-
@pytest.mark.xfail(
23-
strict=True,
24-
reason='https://github.com/GoogleCloudPlatform/gcloud-python/issues/2133')
2520
def test_load_table(resource, capsys):
2621
data_path = resource('data.csv')
2722

0 commit comments

Comments
 (0)