diff --git a/voctocore/tests/helper/voctomix_test.py b/voctocore/tests/helper/voctomix_test.py index 077f3ad3..29d97aa8 100644 --- a/voctocore/tests/helper/voctomix_test.py +++ b/voctocore/tests/helper/voctomix_test.py @@ -22,7 +22,7 @@ def setUp(self): lib.config.Config.resetToDefaults() def assertContainsIgnoringWhitespace(self, text, search): - regex = search.replace(" ", "\\s*") + regex = search.replace(" ", r"\s*") try: self.assertRegex(text, regex) diff --git a/voctogui/lib/connection.py b/voctogui/lib/connection.py index da1219ec..caddbe2c 100644 --- a/voctogui/lib/connection.py +++ b/voctogui/lib/connection.py @@ -17,7 +17,7 @@ def establish(host): log.info('establishing Connection to %s', host) conn = socket.create_connection((host, port)) - log.debug('Connection successful \\o/') + log.debug(r'Connection successful \o/') ip = conn.getpeername()[0] log.debug('Remote-IP is %s', ip)