Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/distutils/tests/test_version.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s�dZddlZddlmZddlmZddlmZdejfd��YZd�Z	e
d	kr�ee	��ndS(
sTests for distutils.version.i�N(tLooseVersion(t
StrictVersion(trun_unittesttVersionTestCasecBs#eZd�Zd�Zd�ZRS(cCsntd�}|j|jd�|j|jd	�|jt|�d�td�}|jt|�d�dS(
Ns1.2.3a1iiitas1.2.0s1.2(iii(Ri(RtassertEqualtversiont
prereleasetstr(tselfR((s2/sys/lib/python2.7/distutils/tests/test_version.pyttest_prerelease	scCs�dddtfddd	tfd
dtfdd
tfdddd d!d"d#d$ddtff}x�|D]�\}}}yt|�jt|��}Wn9tk
r�|tkr�qgq�td||f��nX|j||d||||f�qgWdS(%Ns1.5.1s1.5.2b2i�t161s3.10as8.02is3.4js
1996.07.12s3.2.pl0s3.1.1.6t2g6t11gs0.9s2.2s1.2.1s1.2is1.1s1.2.2s0.4.0s0.4s1.13++s5.5.kws&cmp(%s, %s) shouldn't raise ValueErrors cmp(%s, %s) should be %s, got %s(s1.5.1s1.5.2b2i�(s8.02s8.02i(s0.9s2.2i�(s1.2.1s1.2i(s1.1s1.2.2i�(s1.2s1.1i(s1.2.1s1.2.2i�(s1.2.2s1.2i(s1.2s1.2.2i�(s0.4.0s0.4i(t
ValueErrorRt__cmp__tAssertionErrorR(R	tversionstv1tv2twantedtres((s2/sys/lib/python2.7/distutils/tests/test_version.pyttest_cmp_stricts4
c
Cszddddddddf}xU|D]M\}}}t|�jt|��}|j||d||||f�q%WdS(Ns1.5.1s1.5.2b2i�Rs3.10ais8.02is3.4js
1996.07.12s3.2.pl0s3.1.1.6RR
s0.960923s	2.2beta29s1.13++s5.5.kws cmp(%s, %s) should be %s, got %s(s1.5.1s1.5.2b2i�(s161s3.10ai(s8.02s8.02i(s3.4js
1996.07.12i�(s3.2.pl0s3.1.1.6i(s2g6s11gi�(s0.960923s	2.2beta29i�(s1.13++s5.5.kwi�(RRR(R	RRRRR((s2/sys/lib/python2.7/distutils/tests/test_version.pyttest_cmp2s	(t__name__t
__module__R
RR(((s2/sys/lib/python2.7/distutils/tests/test_version.pyRs			 cCs
tjt�S(N(tunittestt	makeSuiteR(((s2/sys/lib/python2.7/distutils/tests/test_version.pyt
test_suiteCst__main__(t__doc__Rtdistutils.versionRRttest.test_supportRtTestCaseRRR(((s2/sys/lib/python2.7/distutils/tests/test_version.pyt<module>s<	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.