[Python-checkins] Use raw string to avoid deprecation warning (GH-31427)

sweeneyde webhook-mailer at python.org
Sat Feb 19 00:57:40 EST 2022


https://github.com/python/cpython/commit/7a4791e03613bfbdc0d3ddfabfc0b59e6a6f7358
commit: 7a4791e03613bfbdc0d3ddfabfc0b59e6a6f7358
branch: main
author: Dennis Sweeney <36520290+sweeneyde at users.noreply.github.com>
committer: sweeneyde <36520290+sweeneyde at users.noreply.github.com>
date: 2022-02-19T00:57:36-05:00
summary:

Use raw string to avoid deprecation warning (GH-31427)

files:
M Lib/test/test_property.py

diff --git a/Lib/test/test_property.py b/Lib/test/test_property.py
index 7d1c4a1e12880..d91ad1c191275 100644
--- a/Lib/test/test_property.py
+++ b/Lib/test/test_property.py
@@ -342,7 +342,7 @@ class cls:
 
 
 class PropertyUnreachableAttributeNoName(_PropertyUnreachableAttribute, unittest.TestCase):
-    msg_format = "^property of 'PropertyUnreachableAttributeNoName\.cls' object {}$"
+    msg_format = r"^property of 'PropertyUnreachableAttributeNoName\.cls' object {}$"
 
     class cls:
         pass



More information about the Python-checkins mailing list