mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
Fix invalid escape sequence: use raw string. (GH-6225)
(cherry picked from commit c42e7aa67c
)
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
This commit is contained in:
parent
9989efbb65
commit
5729b9c0e9
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue