KjOUHPSSKrSSKrSSKrSSKrSSKJrJr SSKJr \ "5r "SS\R5r Sr "SS\5rS r\S :XaU\"\R$5S :a-\R$S S :Xa\"\5 \R&"S5 \R("5 gg) N)TestTranslationsBaseupdate_translation_snapshots)EnvironmentVarGuardcJ\rSrSrSrSrSrSrSrSr Sr S r S r S r g ) GetoptTests cZUR[55UlURS g)NPOSIXLY_CORRECT) enterContextrenvselfs 7/opt/alt/python313/lib64/python3.13/test/test_getopt.pysetUpGetoptTests.setUps%$$%8%:; HH& 'cLUR"[R/UQ70UD6 gN) assertRaisesgetopt GetoptError)rargskwargss r assertErrorGetoptTests.assertErrors  &,,>t>v>rcUR[R"SS55 UR[R"SS55 UR [RSS5 g)Naa:b) assertTruer short_has_arg assertFalserr s rtest_short_has_argGetoptTests.test_short_has_argsN ,,S$78 --c378 --sC8rc>[R"SS/5upURU5 URUS5 [R"SS/5upUR U5 URUS5 [R"SS/5upUR U5 URUS5 UR [RSS/5 UR [RS/5 UR [RSSS/5 g)Nabcabc=abcddefabcde)r long_has_argsr assertEqualr"r)rhas_argoptions rtest_long_has_argsGetoptTests.test_long_has_argss ..uvh?   ' ..uug> ! ' ..uvh? ! ( --uug> --ub9 --uvg6FGrc[R"/SS/5upURUS/5 URU/5 [R"/SS/5upURUS/5 URU/5 [R"/SSS/5upURUS/5 URU/5 [R"/SSSS/5upURUS/5 URUS/5 UR[R/SS/5 UR[R/SS/5 g)Nr-aa1rr31r72)r do_shortsr,rroptsrs rtest_do_shortsGetoptTests.test_do_shorts+s,%%b#sB7   |, r"%%b$b9   }- r" %%b#tcU;   }- r"%%b#tc3Z@   }- u% ))2tS"= ))2sD"=rc"[R"/SS//5upURUS/5 URU/5 [R"/SS//5upURUS/5 URU/5 [R"/SS//5upURUS/5 URU/5 [R"/S/SQ/5upURUS/5 URU/5 [R"/S S S //5upURUS /5 URU/5 UR[R/SS//5 UR[R/SS//5 g) Nr&)--abcr4zabc=1r')r?r7zabcd=)z--abcdr7)abr&r(zfoo=42zfoo-barzfoo=)z--foo42)rdo_longsr,rr:s r test_do_longsGetoptTests.test_do_longsCsc__R<   / r"__R6(B?  /0 r"__R7)R@  01 r"__R0ErJ   / r" __RIv3GL  01 r" "gwC "efXrBrc/SQn[R"USSS/5up#URU/SQ5 URUSS/5 UR[RUSSS/5 g) N) r3r7-bz --alpha=2--betar33r3r4rGarg1arg2za:bzalpha=beta)r6)rFr4)--alphar8rGr4)r3rHr2rMrIrJalpha)rr,rrcmdliner;rs r test_getoptGetoptTests.test_getopt^so1]]7EHf3EF   I J /0 &8IJrcB/SQn[R"USSS/5up#URUS/5 URU/SQ5 [R"/SQS/5up#URUS/5 URUS S /5 [R"US SS/5up#URUS /5 URU/S Q5 S URS'[R"USSS/5up#URUS /5 URU/S Q5 g)N)r3rIrFr7rL--beta=2zab:rNzbeta=rI)r2)rFr7)rLr4)rGr8)r3-rFrUrUr2)rFrUz+ab:)rIrFr7rLrTr7r )r gnu_getoptr,r rOs rtest_gnu_getoptGetoptTests.test_gnu_getoptosB&&w7IJ  x(  B C&&'=ubI  u%  K89&&w'8JK   |, IJ'*"#&&w7IJ   |, IJrc&[R"S/SS/5upURUS/5 [R"S/SS/5upURUS/5 UR[R[RS/SS/5 g)Nz--help=r4zhelp=)--helpr4z--help=x)rZxhelp)rr,rr)rlongopts shortoptss rtest_issue4629GetoptTests.test_issue4629s~$mmYKgYG N#34$mmZL"wiH O#45 &,,fmmi["vhWr)r N)__name__ __module__ __qualname____firstlineno__rrr#r/r<rCrQrWr___static_attributes__rrrr s4(?9 H">0C6K"K4Xrrcg)a" Examples from the Library Reference: Doc/lib/libgetopt.tex An example using only Unix style options: >>> import getopt >>> args = '-a -b -cfoo -d bar a1 a2'.split() >>> args ['-a', '-b', '-cfoo', '-d', 'bar', 'a1', 'a2'] >>> optlist, args = getopt.getopt(args, 'abc:d:') >>> optlist [('-a', ''), ('-b', ''), ('-c', 'foo'), ('-d', 'bar')] >>> args ['a1', 'a2'] Using long option names is equally easy: >>> s = '--condition=foo --testing --output-file abc.def -x a1 a2' >>> args = s.split() >>> args ['--condition=foo', '--testing', '--output-file', 'abc.def', '-x', 'a1', 'a2'] >>> optlist, args = getopt.getopt(args, 'x', [ ... 'condition=', 'output-file=', 'testing']) >>> optlist [('--condition', 'foo'), ('--testing', ''), ('--output-file', 'abc.def'), ('-x', '')] >>> args ['a1', 'a2'] Nrfrfrrtest_libref_examplesrhsrc\rSrSrSrSrg)TestTranslationsc.UR[5 gr)assertMsgidsEqualrr s rtest_translations"TestTranslations.test_translationss v&rrfN)rarbrcrdrnrerfrrrjrjs'rrjcNUR[R"55 U$r)addTestdoctest DocTestSuite)loadertestspatterns r load_testsrws MM'&&() Lr__main__z--snapshot-update)rrrsysunittesttest.support.i18n_helperrrtest.support.os_helperrobjectsentinelTestCaserrhrjrwralenargvexitmainrfrrrs W6 8AX(##AXFB'+'   z 388}qSXXa[,??$V,   MMO r