summaryrefslogtreecommitdiff
path: root/tests/helper.py
diff options
context:
space:
mode:
authorChristoph Reiter <creiter@src.gnome.org>2017-04-02 10:52:41 +0200
committerChristoph Reiter <creiter@src.gnome.org>2017-04-02 10:53:23 +0200
commitc2be3cbefbbacb52758b49338be61d093a896d09 (patch)
tree1291ee3d0aaad38c9d017629bc626c80e2ba6879 /tests/helper.py
parentb7d504c3ef689a79448c9f6597ae59153a77104f (diff)
downloadpygobject-c2be3cbefbbacb52758b49338be61d093a896d09.tar.gz
tests: fix invalid regex escaping
Python 3.6 got stricter here and raises warnings/errors for invalid escape sequences.
Diffstat (limited to 'tests/helper.py')
-rw-r--r--tests/helper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/helper.py b/tests/helper.py
index 4ac3dfef..0068945a 100644
--- a/tests/helper.py
+++ b/tests/helper.py
@@ -105,8 +105,8 @@ def capture_glib_deprecation_warnings():
with warnings.catch_warnings(record=True) as warn:
warnings.filterwarnings(
'always', category=GLibWarning,
- message=".+ is deprecated and shouldn't be used anymore\. "
- "It will be removed in a future version\.")
+ message=".+ is deprecated and shouldn't be used anymore\\. "
+ "It will be removed in a future version\\.")
yield warn