Skip to content

Commit e21d0f9

Browse files
authored
SNOW-637204: Fix unstable sqlachemy test test_special_schema_character (#329)
1 parent 6fa523c commit e21d0f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
from .conftest import create_engine_with_future_flag as create_engine
4141
from .conftest import get_engine
4242
from .parameters import CONNECTION_PARAMETERS
43+
from .util import random_string
4344

4445
THIS_DIR = os.path.dirname(os.path.realpath(__file__))
4546

@@ -1361,8 +1362,8 @@ def test_comment_sqlalchemy(db_parameters, engine_testaccount, on_public_ci):
13611362
def test_special_schema_character(db_parameters, on_public_ci):
13621363
"""Make sure we decode special characters correctly"""
13631364
# Constants
1364-
database = "a/b/c" # "'/'.join([choice(ascii_lowercase) for _ in range(3)])
1365-
schema = "d/e/f" # '/'.join([choice(ascii_lowercase) for _ in range(3)])
1365+
database = f"{random_string(5)}a/b/c" # "'/'.join([choice(ascii_lowercase) for _ in range(3)])
1366+
schema = f"{random_string(5)}d/e/f" # '/'.join([choice(ascii_lowercase) for _ in range(3)])
13661367
# Setup
13671368
options = dict(**db_parameters)
13681369
conn = connect(**options)

0 commit comments

Comments
 (0)