From: Bartosz Golaszewski Date: Wed, 22 May 2024 18:07:34 +0000 (+0200) Subject: bindings: python: tests: fix invalid syntax warnings X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3ece522b8d834a456ab5c27c682a9e099449cc4c;p=qemu-gpiodev%2Flibgpiod.git 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 '\.' "", bindings/python/tests/tests_info_event.py:188: SyntaxWarning: invalid escape sequence '\.' '>', Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/python/tests/tests_edge_event.py b/bindings/python/tests/tests_edge_event.py index 430b27d..17b2702 100644 --- a/bindings/python/tests/tests_edge_event.py +++ b/bindings/python/tests/tests_edge_event.py @@ -208,5 +208,5 @@ class EdgeEventStringRepresentation(TestCase): event = req.read_edge_events()[0] self.assertRegex( str(event), - "", + "", ) diff --git a/bindings/python/tests/tests_info_event.py b/bindings/python/tests/tests_info_event.py index 6bb09d5..a226e52 100644 --- a/bindings/python/tests/tests_info_event.py +++ b/bindings/python/tests/tests_info_event.py @@ -185,5 +185,5 @@ class InfoEventStringRepresentation(TestCase): event = chip.read_info_event() self.assertRegex( str(event), - '>', + '>', )