Skip to content

CI: Fix GBQ Tests #30478

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 8 commits into from
Dec 27, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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