bindings: python: tests: fix invalid syntax warnings
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 22 May 2024 18:07:34 +0000 (20:07 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 22 May 2024 18:07:34 +0000 (20:07 +0200)
commit3ece522b8d834a456ab5c27c682a9e099449cc4c
tree5ebbd5ca68ce98aa2f15db32c71e42bd865bebb5
parent0a552e7908896b7b96fd502052fa7289af9f6e7b
bindings: python: tests: fix invalid syntax warnings

Use double '/' for escaping regex special characters for patterns in
python strings to silence the following warnings:

bindings/python/tests/tests_edge_event.py:211: SyntaxWarning: invalid escape sequence '\.'
  "<EdgeEvent type=Type\.RISING_EDGE timestamp_ns=[0-9]+ line_offset=0 global_seqno=1 line_seqno=1>",
bindings/python/tests/tests_info_event.py:188: SyntaxWarning: invalid escape sequence '\.'
  '<InfoEvent type=Type\.LINE_REQUESTED timestamp_ns=[0-9]+ line_info=<LineInfo offset=0 name="None" used=True consumer="\?" direction=Direction\.INPUT active_low=False bias=Bias\.UNKNOWN drive=Drive\.PUSH_PULL edge_detection=Edge\.NONE event_clock=Clock\.MONOTONIC debounced=False debounce_period=0:00:00>>',

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/python/tests/tests_edge_event.py
bindings/python/tests/tests_info_event.py