From 3ece522b8d834a456ab5c27c682a9e099449cc4c Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Wed, 22 May 2024 20:07:34 +0200 Subject: [PATCH] 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 --- bindings/python/tests/tests_edge_event.py | 2 +- bindings/python/tests/tests_info_event.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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), - '>', + '>', ) -- 2.30.2