Merge pull request #917 from dlech/fix-regex-with-backslash

Fix regex syntax warning in sdp_test.py.
This commit is contained in:
Josh Wu
2026-04-27 09:55:36 +08:00
committed by GitHub

View File

@@ -215,7 +215,7 @@ def test_pdu_parameter_length(caplog) -> None:
transaction_id=0, error_code=sdp.ErrorCode.INVALID_SDP_VERSION transaction_id=0, error_code=sdp.ErrorCode.INVALID_SDP_VERSION
) )
assert sdp.SDP_PDU.from_bytes(bytes(pdu)) == pdu assert sdp.SDP_PDU.from_bytes(bytes(pdu)) == pdu
assert not re.search("Expect \d+ bytes, got \d+", caplog.text) assert not re.search(r"Expect \d+ bytes, got \d+", caplog.text)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------