File tree 2 files changed +7
-0
lines changed 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -497,6 +497,9 @@ def finish_entry():
497
497
if value not in sections :
498
498
throw (f"Invalid section { value !r} ! You must use one of the predefined sections." )
499
499
500
+ if "gh-issue" not in metadata and "bpo" not in metadata :
501
+ throw ("'gh-issue:' or 'bpo:' must be specified in the metadata!" )
502
+
500
503
if not 'section' in metadata :
501
504
throw ("No 'section' specified. You must provide one!" )
502
505
Original file line number Diff line number Diff line change @@ -240,6 +240,10 @@ def test_parse():
240
240
".. gh-issue: 123456\n .. section: IDLE\n .. section: IDLE\n Hello world!" ,
241
241
r"Blurb metadata sets 'section' twice!" ,
242
242
),
243
+ (
244
+ ".. section: IDLE\n Hello world!" ,
245
+ r"'gh-issue:' or 'bpo:' must be specified in the metadata!" ,
246
+ ),
243
247
),
244
248
)
245
249
def test_parse_no_body (contents , expected_error ):
You can’t perform that action at this time.
0 commit comments