Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
24e77f92
Commit
24e77f92
authored
Dec 06, 2017
by
Eric V. Smith
Committed by
GitHub
Dec 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use raw strings for regex to avoid invalid escape sequences. (GH-4741)
parent
9d25bd11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/test/test_dataclasses.py
Lib/test/test_dataclasses.py
+2
-2
No files found.
Lib/test/test_dataclasses.py
View file @
24e77f92
...
...
@@ -1831,7 +1831,7 @@ class TestCase(unittest.TestCase):
# if we're also replacing one that does exist. Test this
# here, because setting attributes on frozen instances is
# handled slightly differently from non-frozen ones.
with
self
.
assertRaisesRegex
(
TypeError
,
"__init__
\
(
\
) got an unexpected "
with
self
.
assertRaisesRegex
(
TypeError
,
r
"__init__\
(
\) got an unexpected "
"keyword argument 'a'"
):
c1
=
replace
(
c
,
x
=
20
,
a
=
5
)
...
...
@@ -1842,7 +1842,7 @@ class TestCase(unittest.TestCase):
y
:
int
c
=
C
(
1
,
2
)
with
self
.
assertRaisesRegex
(
TypeError
,
"__init__
\
(
\
) got an unexpected "
with
self
.
assertRaisesRegex
(
TypeError
,
r
"__init__\
(
\) got an unexpected "
"keyword argument 'z'"
):
c1
=
replace
(
c
,
z
=
3
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment