utils: abbreviate delta for Python 3.12 argparse

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
This commit is contained in:
Zygmunt Krynicki 2025-01-28 20:12:25 +01:00
parent 6336465edf
commit 0acc138712

View file

@ -245,18 +245,18 @@ Filtering options:
#
# https://github.com/python/cpython/pull/103372
patches = [(
' -f, --file FILE search FILE for AppArmor messages',
' -f FILE, --file FILE search FILE for AppArmor messages',
', --file FILE ',
' FILE, --file FILE',
), (
' -s, --since-days NUM show stats for last NUM days (can be used alone or with',
' -s NUM, --since-days NUM\n'
', --since-days NUM show stats for last NUM days (can be used alone or with',
' NUM, --since-days NUM\n'
+ ' show stats for last NUM days (can be used alone or with',
), (
' -u, --user USER user to drop privileges to when not using sudo',
' -u USER, --user USER user to drop privileges to when not using sudo',
', --user USER ',
' USER, --user USER',
), (
' -w, --wait NUM wait NUM seconds before displaying notifications (with',
' -w NUM, --wait NUM wait NUM seconds before displaying notifications (with',
', --wait NUM ',
' NUM, --wait NUM',
)]
for patch in patches:
expected_output_2 = expected_output_2.replace(patch[0], patch[1])