File tree Expand file tree Collapse file tree 3 files changed +48
-22
lines changed Expand file tree Collapse file tree 3 files changed +48
-22
lines changed Original file line number Diff line number Diff line change 51
51
name : build-${{ matrix.python-ver }}
52
52
fail_ci_if_error : true
53
53
token : ${{ secrets.CODECOV_TOKEN }}
54
+ flags : unittests
Original file line number Diff line number Diff line change 1
1
comment :
2
2
require_changes : true
3
+
3
4
coverage :
4
5
status :
5
6
patch :
6
7
default : false
7
- tests :
8
- target : 100%
9
- paths :
10
- - tests/
11
- core :
12
- paths :
13
- - cloudbot/
14
- target : 100%
15
- plugins :
16
- paths :
17
- - plugins/
18
8
project :
19
- tests :
20
- target : 100%
21
- paths :
22
- - tests/
23
- core :
24
- paths :
25
- - cloudbot/
26
- plugins :
27
- paths :
28
- - plugins/
9
+ default : false
10
+
11
+ component_management :
12
+ individual_components :
13
+ - component_id : types
14
+ name : types
15
+ flag_regexes :
16
+ - types
17
+ statuses :
18
+ - type : patch
19
+ target : 90%
20
+
21
+ - component_id : tests
22
+ name : tests
23
+ flag_regexes :
24
+ - unittests
25
+ paths :
26
+ - tests/
27
+ statuses :
28
+ - type : patch
29
+ target : 100%
30
+ - type : project
31
+ target : 100%
32
+
33
+ - component_id : core
34
+ name : core
35
+ flag_regexes :
36
+ - unittests
37
+ paths :
38
+ - cloudbot/
39
+ statuses :
40
+ - type : patch
41
+ target : 100%
42
+ - type : project
43
+
44
+ - component_id : plugins
45
+ name : plugins
46
+ flag_regexes :
47
+ - unittests
48
+ paths :
49
+ - plugins/
50
+ statuses :
51
+ - type : patch
52
+ - type : project
Original file line number Diff line number Diff line change
1
+ import sys
1
2
from itertools import chain
2
3
3
4
from plugins .core import chan_log
6
7
def test_format_exception_chain ():
7
8
def _get_data (exc ):
8
9
yield repr (exc )
9
- if hasattr ( exc , "add_note" ):
10
+ if sys . version_info >= ( 3 , 11 ):
10
11
yield f" add_note = { exc .add_note !r} "
11
12
12
13
yield f" args = { exc .args !r} "
You can’t perform that action at this time.
0 commit comments