Fix invalid escape sequence: use raw string. (GH-6225)
This commit is contained in:
parent
01d618c560
commit
c42e7aa67c
@ -2667,7 +2667,7 @@ class TestSlots(unittest.TestCase):
|
|||||||
# There was a bug where a variable in a slot was assumed
|
# There was a bug where a variable in a slot was assumed
|
||||||
# to also have a default value (of type types.MemberDescriptorType).
|
# to also have a default value (of type types.MemberDescriptorType).
|
||||||
with self.assertRaisesRegex(TypeError,
|
with self.assertRaisesRegex(TypeError,
|
||||||
"__init__\(\) missing 1 required positional argument: 'x'"):
|
r"__init__\(\) missing 1 required positional argument: 'x'"):
|
||||||
C()
|
C()
|
||||||
|
|
||||||
# We can create an instance, and assign to x.
|
# We can create an instance, and assign to x.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user