summaryrefslogtreecommitdiff
path: root/Lib/test/test_dataclasses.py
diff options
context:
space:
mode:
authorEric V. Smith <ericvsmith@users.noreply.github.com>2018-03-24 23:02:21 -0400
committerGitHub <noreply@github.com>2018-03-24 23:02:21 -0400
commitc42e7aa67ce72a6c4c6cdfe3b0929ca07556d444 (patch)
tree3fea955ff731373bbda606c434d3939592f1147b /Lib/test/test_dataclasses.py
parent01d618c5606a239b03ad1269541eddb6e724775d (diff)
downloadcpython-git-c42e7aa67ce72a6c4c6cdfe3b0929ca07556d444.tar.gz
Fix invalid escape sequence: use raw string. (GH-6225)
Diffstat (limited to 'Lib/test/test_dataclasses.py')
-rwxr-xr-xLib/test/test_dataclasses.py2
1 files changed, 1 insertions, 1 deletions
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.