%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/test/
Upload File :
Create Path :
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/test/test_import_magic.pyc

�
5}�ac@s`ddlZddlZddlZdejfd��YZd�Zedkr\e�ndS(i����NtMagicNumberTestscBs5eZdZejejjdkd�d��ZRS(sL
    Test release compatibility issues relating to precompiled bytecode
    t	candidatetfinals8only applies to candidate or final python release levelscCsNd}tj�}t|d�d>t|d�}d}|j||�dS(s
        Each python minor release should generally have a MAGIC_NUMBER
        that does not change once the release reaches candidate status.

        Once a release reaches candidate status, the value of the constant
        EXPECTED_MAGIC_NUMBER in this test should be changed.
        This test will then check that the actual MAGIC_NUMBER matches
        the expected value for the release.

        In exceptional cases, it may be required to change the MAGIC_NUMBER
        for a maintenance release. In this case the change should be
        discussed in python-dev. If a change is required, community
        stakeholders such as OS package maintainers must be notified
        in advance. Such exceptional releases will then require an
        adjustment to this test case.
        i�iiis�To avoid breaking backwards compatibility with cached bytecode files that can't be automatically regenerated by the current user, candidate and final releases require the current  importlib.util.MAGIC_NUMBER to match the expected magic number in this test. Set the expected magic number in this test to the current MAGIC_NUMBER to continue with the release.

Changing the MAGIC_NUMBER for a maintenance release requires discussion in python-dev and notification of community stakeholders.N(timpt	get_magictordtassertEqual(tselftEXPECTED_MAGIC_NUMBERt	raw_magictactualtmsg((s?/opt/plesk/python/2.7/lib64/python2.7/test/test_import_magic.pyttest_magic_number
s
"(RR(	t__name__t
__module__t__doc__tunittestt
skipUnlesstsystversion_infotreleaselevelR(((s?/opt/plesk/python/2.7/lib64/python2.7/test/test_import_magic.pyR	scCsddlm}|t�dS(Ni����(trun_unittest(ttest.supportRR(R((s?/opt/plesk/python/2.7/lib64/python2.7/test/test_import_magic.pyt	test_main5st__main__(RRRtTestCaseRRR
(((s?/opt/plesk/python/2.7/lib64/python2.7/test/test_import_magic.pyt<module>s,	

Zerion Mini Shell 1.0