Skip to content

Commit 59a9dcd

Browse files
committed
Table name must be alphanumeric
1 parent 011fbaf commit 59a9dcd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/tests/io/test_gbq.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
from datetime import datetime
33
import os
44
import platform
5-
import uuid
5+
import random
6+
import string
67

78
import numpy as np
89
import pytest
@@ -164,8 +165,8 @@ def gbq_dataset(self):
164165

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

167-
table_id = str(uuid.uuid1())
168-
destination_table = f"{dataset_id}.{table_id}"
168+
table_name = "".join(random.choices(string.ascii_lowercase, k=10))
169+
destination_table = f"{dataset_id}.{table_name}"
169170
yield destination_table
170171

171172
# Teardown Dataset

0 commit comments

Comments
 (0)