From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 25 Mar 2018 03:23:00 +0000 (-0700) Subject: Fix invalid escape sequence: use raw string. (GH-6225) X-Git-Tag: v3.7.0b3~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5729b9c0e9833ec8387d1bdaef619a2e66060a28;p=python Fix invalid escape sequence: use raw string. (GH-6225) (cherry picked from commit c42e7aa67ce72a6c4c6cdfe3b0929ca07556d444) Co-authored-by: Eric V. Smith --- diff --git a/Lib/test/test_dataclasses.py b/Lib/test/test_dataclasses.py index 8aff8ae140..75e3cffc4a 100755 --- a/Lib/test/test_dataclasses.py +++ b/Lib/test/test_dataclasses.py @@ -2667,7 +2667,7 @@ class TestSlots(unittest.TestCase): # There was a bug where a variable in a slot was assumed # to also have a default value (of type types.MemberDescriptorType). with self.assertRaisesRegex(TypeError, - "__init__\(\) missing 1 required positional argument: 'x'"): + r"__init__\(\) missing 1 required positional argument: 'x'"): C() # We can create an instance, and assign to x.