]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use raw string to avoid deprecation warning (GH-31427)
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Sat, 19 Feb 2022 05:57:36 +0000 (00:57 -0500)
committerGitHub <noreply@github.com>
Sat, 19 Feb 2022 05:57:36 +0000 (00:57 -0500)
Lib/test/test_property.py

index 7d1c4a1e128805e3b458c8dd1b0f2a7103635221..d91ad1c191275e1ee3d0ad38839345b63727e02b 100644 (file)
@@ -342,7 +342,7 @@ class PropertyUnreachableAttributeWithName(_PropertyUnreachableAttribute, unitte
 
 
 class PropertyUnreachableAttributeNoName(_PropertyUnreachableAttribute, unittest.TestCase):
-    msg_format = "^property of 'PropertyUnreachableAttributeNoName\.cls' object {}$"
+    msg_format = r"^property of 'PropertyUnreachableAttributeNoName\.cls' object {}$"
 
     class cls:
         pass