Skip to content

Commit c42e7aa

Browse files
authored
Fix invalid escape sequence: use raw string. (GH-6225)
1 parent 01d618c commit c42e7aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_dataclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,7 @@ class C:
26672667
# There was a bug where a variable in a slot was assumed
26682668
# to also have a default value (of type types.MemberDescriptorType).
26692669
with self.assertRaisesRegex(TypeError,
2670-
"__init__\(\) missing 1 required positional argument: 'x'"):
2670+
r"__init__\(\) missing 1 required positional argument: 'x'"):
26712671
C()
26722672

26732673
# We can create an instance, and assign to x.

0 commit comments

Comments
 (0)