File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -486,10 +486,10 @@ def finish_entry():
486
486
try :
487
487
int (value )
488
488
except (TypeError , ValueError ):
489
- throw (f"Invalid { issue_keys [key ]} issue number! ( { value !r} ) " )
489
+ throw (f"Invalid { issue_keys [key ]} number: { value !r} " )
490
490
491
491
if key == "gh-issue" and int (value ) < lowest_possible_gh_issue_number :
492
- throw (f"The gh-issue number must be { lowest_possible_gh_issue_number } or above, not a PR number. " )
492
+ throw (f"Invalid gh-issue number: { value !r } ( must be >= { lowest_possible_gh_issue_number } ) " )
493
493
494
494
if key == "section" :
495
495
if no_changes :
Original file line number Diff line number Diff line change @@ -217,15 +217,15 @@ def test_parse():
217
217
),
218
218
(
219
219
".. gh-issue: 1\n .. section: IDLE\n Hello world!" ,
220
- r"The gh-issue number must be 32426 or above, not a PR number " ,
220
+ r"Invalid gh-issue number: '1' \( must be >= 32426\) " ,
221
221
),
222
222
(
223
223
".. bpo: one-two\n .. section: IDLE\n Hello world!" ,
224
- r"Invalid bpo issue number! \( 'one-two'\) " ,
224
+ r"Invalid bpo number: 'one-two'" ,
225
225
),
226
226
(
227
227
".. gh-issue: one-two\n .. section: IDLE\n Hello world!" ,
228
- r"Invalid GitHub issue number! \( 'one-two'\) " ,
228
+ r"Invalid GitHub number: 'one-two'" ,
229
229
),
230
230
(
231
231
".. gh-issue: 123456\n .. section: Funky Kong\n Hello world!" ,
You can’t perform that action at this time.
0 commit comments