From 395dd4d1f0d3bfabf4f8cecafdae981027b3fc60 Mon Sep 17 00:00:00 2001 From: "Eric V. Smith" Date: Sat, 24 Mar 2018 22:50:05 -0400 Subject: [PATCH] Fix invalid escape sequence: use raw string. --- Lib/test/test_dataclasses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_dataclasses.py b/Lib/test/test_dataclasses.py index 8aff8ae140a5cd..75e3cffc4a5e18 100755 --- a/Lib/test/test_dataclasses.py +++ b/Lib/test/test_dataclasses.py @@ -2667,7 +2667,7 @@ class C: # 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.