mirror of
https://github.com/google/bumble.git
synced 2026-05-08 03:58:01 +00:00
Merge pull request #917 from dlech/fix-regex-with-backslash
Fix regex syntax warning in sdp_test.py.
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user