From: Anthony Sottile Date: Mon, 11 Dec 2023 11:48:52 +0000 (-0500) Subject: Fix SyntaxWarning in test_syntax.py (GH-112944) X-Git-Tag: v3.13.0a3~443 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97cd45bfdbb6525457ba9d6824386f1e0eea6657;p=thirdparty%2FPython%2Fcpython.git Fix SyntaxWarning in test_syntax.py (GH-112944) --- diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index 99433df73387..ece136607679 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -2336,7 +2336,7 @@ func( # Examples with dencodings s = b'# coding=latin\n(aaaaaaaaaaaaaaaaa\naaaaaaaaaaa\xb5' - self._check_error(s, "'\(' was never closed") + self._check_error(s, r"'\(' was never closed") def test_error_string_literal(self):