Skip to content

Fix regex syntax warning in sdp_test.py.#917

Merged
zxzxwu merged 1 commit intogoogle:mainfrom
dlech:fix-regex-with-backslash
Apr 27, 2026
Merged

Fix regex syntax warning in sdp_test.py.#917
zxzxwu merged 1 commit intogoogle:mainfrom
dlech:fix-regex-with-backslash

Conversation

@dlech
Copy link
Copy Markdown
Contributor

@dlech dlech commented Apr 26, 2026

Change regex match string to raw string to avoid syntax warning:

tests/sdp_test.py:218: SyntaxWarning: invalid escape sequence '\d'
assert not re.search("Expect \d+ bytes, got \d+", caplog.text)

In the future, this will become an error, so we should fix it now.

Change regex match string to raw string to avoid syntax warning:

    tests/sdp_test.py:218: SyntaxWarning: invalid escape sequence '\d'
    assert not re.search("Expect \d+ bytes, got \d+", caplog.text)

In the future, this will become an error, so we should fix it now.
@zxzxwu zxzxwu merged commit 80f54f2 into google:main Apr 27, 2026
55 checks passed
@dlech dlech deleted the fix-regex-with-backslash branch April 27, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants