File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,18 +38,18 @@ def test_bad_EG_construction__bad_message(self):
38
38
ExceptionGroup (None , [ValueError (12 )])
39
39
40
40
def test_bad_EG_construction__bad_excs_sequence (self ):
41
- MSG = 'second argument \(exceptions\) must be a sequence'
41
+ MSG = r 'second argument \(exceptions\) must be a sequence'
42
42
with self .assertRaisesRegex (TypeError , MSG ):
43
43
ExceptionGroup ('errors not sequence' , {ValueError (42 )})
44
44
with self .assertRaisesRegex (TypeError , MSG ):
45
45
ExceptionGroup ("eg" , None )
46
46
47
- MSG = 'second argument \(exceptions\) must be a non-empty sequence'
47
+ MSG = r 'second argument \(exceptions\) must be a non-empty sequence'
48
48
with self .assertRaisesRegex (ValueError , MSG ):
49
49
ExceptionGroup ("eg" , [])
50
50
51
51
def test_bad_EG_construction__nested_non_exceptions (self ):
52
- MSG = ('Item [0-9]+ of second argument \(exceptions\)'
52
+ MSG = (r 'Item [0-9]+ of second argument \(exceptions\)'
53
53
' is not an exception' )
54
54
with self .assertRaisesRegex (ValueError , MSG ):
55
55
ExceptionGroup ('expect instance, not type' , [OSError ]);
You can’t perform that action at this time.
0 commit comments