Skip to content

CI: Fix Flakey GBQ Tests #30630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jan 3, 2020
Prev Previous commit
Next Next commit
Table name must be alphanumeric
  • Loading branch information
alimcmaster1 committed Dec 26, 2019
commit 59a9dcde75e7a21c955ecc3518b81d06eb8b7f2c
7 changes: 4 additions & 3 deletions pandas/tests/io/test_gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from datetime import datetime
import os
import platform
import uuid
import random
import string

import numpy as np
import pytest
Expand Down Expand Up @@ -164,8 +165,8 @@ def gbq_dataset(self):

self.client.create_dataset(bigquery.Dataset(self.dataset))

table_id = str(uuid.uuid1())
destination_table = f"{dataset_id}.{table_id}"
table_name = "".join(random.choices(string.ascii_lowercase, k=10))
destination_table = f"{dataset_id}.{table_name}"
yield destination_table

# Teardown Dataset
Expand Down