File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1831,7 +1831,7 @@ class C:
1831
1831
# if we're also replacing one that does exist. Test this
1832
1832
# here, because setting attributes on frozen instances is
1833
1833
# handled slightly differently from non-frozen ones.
1834
- with self .assertRaisesRegex (TypeError , "__init__\(\) got an unexpected "
1834
+ with self .assertRaisesRegex (TypeError , r "__init__\(\) got an unexpected "
1835
1835
"keyword argument 'a'" ):
1836
1836
c1 = replace (c , x = 20 , a = 5 )
1837
1837
@@ -1842,7 +1842,7 @@ class C:
1842
1842
y : int
1843
1843
1844
1844
c = C (1 , 2 )
1845
- with self .assertRaisesRegex (TypeError , "__init__\(\) got an unexpected "
1845
+ with self .assertRaisesRegex (TypeError , r "__init__\(\) got an unexpected "
1846
1846
"keyword argument 'z'" ):
1847
1847
c1 = replace (c , z = 3 )
1848
1848
You can’t perform that action at this time.
0 commit comments