python (3.12.0)
͑eu d dl Z d dlZdZej Z G d de j
Zedk( r e j yy) N)alphabeta candidatefinalc e Zd Zd Zd Zy)
FutureTestc * t d d }t t D ]Y }t t |d }|t |t j
s2| j
||v d|z |j | [ | j t | dd|z y )Nz(%r should have been in all_feature_namesr z"all_feature_names has too much: %r)
featuresdir
__future__getattr
isinstance_Feature
assertTrueremoveassertEquallen)selfgiven_feature_namesnameobjs H/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test___future__.py
test_nameszFutureTest.test_names
s &qk
O 1D*dD1C:c:3F3F#G//>E $**40 1
01136II K c t D ] }t t | }|j }|j }| j
| j fd} ||d | ||d ||k d t |d d t ddd |j t t |d t d
y )Nc t | t d|z t | dd|z | \ }}}}} t |t d|z t |t d|z t |t d|z t |t d|z |t
v d|z t |t d |z y )
Nz%s isn't tuple z%s isn't 5-tuplez%s major isn't intz%s minor isn't intz%s micro isn't intz%s level isn't stringz!%s level string has unknown valuez%s serial isn't int)r tupler intstrGOOD_SERIALS) tr majorminormicrolevelserialaes r checkz)FutureTest.test_attributes.<locals>.check! s *Q&(84(?@#a&!/$67784ueV*UC(*>$*FG*UC(*>*EF*UC(*>*EF*UC(+d24%<':TAC*VS)+@4+GHr optional mandatoryz8optional not less than mandatory, and mandatory not None
compiler_flagz(feature is missing a .compiler_flag attr z<test>execz.compiler_flag isn't int)r
r
r getOptionalReleasegetMandatoryReleaser r hasattrcompiler- r r )r featurevaluer+ r, r* r( r) s @@r test_attributeszFutureTest.test_attributes s /GJ0E//1H113IA A
I
(J'$i-(Y&QS
ge_-=
?
B&%*=*=>
j8#>-
/? /r N)__name__
__module____qualname__r r6 r r r r s
K!/r r __main__) unittestr r! all_feature_namesr
TestCaser r7 mainr: r r <module>r@ sH 6''1/""