Skip to content

Commit

Permalink
Fix invalid escape sequence: use raw string. (GH-6225)
Browse files Browse the repository at this point in the history
(cherry picked from commit c42e7aa)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
  • Loading branch information
miss-islington and ericvsmith committed Mar 25, 2018
1 parent 9989efb commit 5729b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5729b9c

Please sign in to comment.