@@ -9,72 +9,72 @@ PT011.py:13:24: PT011 `pytest.raises(ZeroDivisionError)` is too broad, set the `
9
9
14 | raise ZeroDivisionError (" Can't divide by 0" )
10
10
|
11
11
12
- PT011 .py :18 :24 : PT011 ` pytest.raises(ValueError)` is too broad , set the ` match` parameter or use a more specific exception
12
+ PT011 .py :25 :24 : PT011 ` pytest.raises(ValueError)` is too broad , set the ` match` parameter or use a more specific exception
13
13
|
14
- 17 | def test_error_no_argument_given ():
15
- 18 | with pytest .raises (ValueError ):
14
+ 24 | def test_error_no_argument_given ():
15
+ 25 | with pytest .raises (ValueError ):
16
16
| ^^^^^^^^^^ PT011
17
- 19 | raise ValueError (" Can't divide 1 by 0" )
17
+ 26 | raise ValueError (" Can't divide 1 by 0" )
18
18
|
19
19
20
- PT011 .py :21 :43 : PT011 ` pytest.raises(ValueError)` is too broad , set the ` match` parameter or use a more specific exception
20
+ PT011 .py :28 :43 : PT011 ` pytest.raises(ValueError)` is too broad , set the ` match` parameter or use a more specific exception
21
21
|
22
- 19 | raise ValueError (" Can't divide 1 by 0" )
23
- 20 |
24
- 21 | with pytest .raises (expected_exception = ValueError ):
22
+ 26 | raise ValueError (" Can't divide 1 by 0" )
23
+ 27 |
24
+ 28 | with pytest .raises (expected_exception = ValueError ):
25
25
| ^^^^^^^^^^ PT011
26
- 22 | raise ValueError (" Can't divide 1 by 0" )
26
+ 29 | raise ValueError (" Can't divide 1 by 0" )
27
27
|
28
28
29
- PT011 .py :24 :24 : PT011 ` pytest.raises(socket.error)` is too broad , set the ` match` parameter or use a more specific exception
29
+ PT011 .py :31 :24 : PT011 ` pytest.raises(socket.error)` is too broad , set the ` match` parameter or use a more specific exception
30
30
|
31
- 22 | raise ValueError (" Can't divide 1 by 0" )
32
- 23 |
33
- 24 | with pytest .raises (socket .error ):
31
+ 29 | raise ValueError (" Can't divide 1 by 0" )
32
+ 30 |
33
+ 31 | with pytest .raises (socket .error ):
34
34
| ^^^^^^^^^^^^ PT011
35
- 25 | raise ValueError (" Can't divide 1 by 0" )
35
+ 32 | raise ValueError (" Can't divide 1 by 0" )
36
36
|
37
37
38
- PT011 .py :27 :24 : PT011 ` pytest.raises(pickle.PicklingError)` is too broad , set the ` match` parameter or use a more specific exception
38
+ PT011 .py :34 :24 : PT011 ` pytest.raises(pickle.PicklingError)` is too broad , set the ` match` parameter or use a more specific exception
39
39
|
40
- 25 | raise ValueError (" Can't divide 1 by 0" )
41
- 26 |
42
- 27 | with pytest .raises (PicklingError ):
40
+ 32 | raise ValueError (" Can't divide 1 by 0" )
41
+ 33 |
42
+ 34 | with pytest .raises (PicklingError ):
43
43
| ^^^^^^^^^^^^^ PT011
44
- 28 | raise PicklingError (" Can't pickle" )
44
+ 35 | raise PicklingError (" Can't pickle" )
45
45
|
46
46
47
- PT011 .py :30 :24 : PT011 ` pytest.raises(pickle.UnpicklingError)` is too broad , set the ` match` parameter or use a more specific exception
47
+ PT011 .py :37 :24 : PT011 ` pytest.raises(pickle.UnpicklingError)` is too broad , set the ` match` parameter or use a more specific exception
48
48
|
49
- 28 | raise PicklingError (" Can't pickle" )
50
- 29 |
51
- 30 | with pytest .raises (UnpicklingError ):
49
+ 35 | raise PicklingError (" Can't pickle" )
50
+ 36 |
51
+ 37 | with pytest .raises (UnpicklingError ):
52
52
| ^^^^^^^^^^^^^^^ PT011
53
- 31 | raise UnpicklingError (" Can't unpickle" )
53
+ 38 | raise UnpicklingError (" Can't unpickle" )
54
54
|
55
55
56
- PT011 .py :35 :24 : PT011 ` pytest.raises(ValueError)` is too broad , set the ` match` parameter or use a more specific exception
56
+ PT011 .py :42 :24 : PT011 ` pytest.raises(ValueError)` is too broad , set the ` match` parameter or use a more specific exception
57
57
|
58
- 34 | def test_error_match_is_empty ():
59
- 35 | with pytest .raises (ValueError , match = None ):
58
+ 41 | def test_error_match_is_empty ():
59
+ 42 | with pytest .raises (ValueError , match = None ):
60
60
| ^^^^^^^^^^ PT011
61
- 36 | raise ValueError (" Can't divide 1 by 0" )
61
+ 43 | raise ValueError (" Can't divide 1 by 0" )
62
62
|
63
63
64
- PT011 .py :38 :24 : PT011 ` pytest.raises(ValueError)` is too broad , set the ` match` parameter or use a more specific exception
64
+ PT011 .py :45 :24 : PT011 ` pytest.raises(ValueError)` is too broad , set the ` match` parameter or use a more specific exception
65
65
|
66
- 36 | raise ValueError (" Can't divide 1 by 0" )
67
- 37 |
68
- 38 | with pytest .raises (ValueError , match = " " ):
66
+ 43 | raise ValueError (" Can't divide 1 by 0" )
67
+ 44 |
68
+ 45 | with pytest .raises (ValueError , match = " " ):
69
69
| ^^^^^^^^^^ PT011
70
- 39 | raise ValueError (" Can't divide 1 by 0" )
70
+ 46 | raise ValueError (" Can't divide 1 by 0" )
71
71
|
72
72
73
- PT011 .py :41 :24 : PT011 ` pytest.raises(ValueError)` is too broad , set the ` match` parameter or use a more specific exception
73
+ PT011 .py :48 :24 : PT011 ` pytest.raises(ValueError)` is too broad , set the ` match` parameter or use a more specific exception
74
74
|
75
- 39 | raise ValueError (" Can't divide 1 by 0" )
76
- 40 |
77
- 41 | with pytest .raises (ValueError , match = f " " ):
75
+ 46 | raise ValueError (" Can't divide 1 by 0" )
76
+ 47 |
77
+ 48 | with pytest .raises (ValueError , match = f " " ):
78
78
| ^^^^^^^^^^ PT011
79
- 42 | raise ValueError (" Can't divide 1 by 0" )
79
+ 49 | raise ValueError (" Can't divide 1 by 0" )
80
80
|
0 commit comments