From 03fcbbd8443fa5c8a09ecb3dd20295307aec372e Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Sat, 20 Jun 2020 02:50:32 +0000 Subject: [PATCH] Fix deprecation warnings due to invalid escape sequences. --- tests/client_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/client_test.py b/tests/client_test.py index b921d88..932465c 100644 --- a/tests/client_test.py +++ b/tests/client_test.py @@ -222,7 +222,7 @@ def test_client_default_contentful_user_agent_headers(self): for e in expected: self.assertTrue(e in header) - self.assertTrue(re.search('os (Windows|macOS|Linux)(\/.*)?;', header)) + self.assertTrue(re.search(r'os (Windows|macOS|Linux)(\/.*)?;', header)) self.assertTrue('integration' not in header) self.assertTrue('app' not in header) @@ -313,7 +313,7 @@ def test_client_with_all_headers(self): for e in expected: self.assertTrue(e in header) - self.assertTrue(re.search('os (Windows|macOS|Linux)(\/.*)?;', header)) + self.assertTrue(re.search(r'os (Windows|macOS|Linux)(\/.*)?;', header)) def test_client_headers(self): client = Client( @@ -337,7 +337,7 @@ def test_client_headers(self): for e in expected: self.assertTrue(e in header) - self.assertTrue(re.search('os (Windows|macOS|Linux)(\/.*)?;', header)) + self.assertTrue(re.search(r'os (Windows|macOS|Linux)(\/.*)?;', header)) # Integration Tests