Commit c42e7aa6 authored by Eric V. Smith's avatar Eric V. Smith Committed by GitHub

Fix invalid escape sequence: use raw string. (GH-6225)

parent 01d618c5
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment