Skip to content

Commit 4ff1910

Browse files
committed
test(api-core): update UUID regex in test_request.py
1 parent 99cee8e commit 4ff1910

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/google-api-core/tests/unit/gapic/test_request.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def __contains__(self, key):
5151

5252
# --- Parameterized Test ---
5353

54-
UUID_REGEX = r"[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
54+
UUID_REGEX = (
55+
r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}"
56+
)
5557

5658

5759
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)