| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/test/__pycache__/ |
Upload File : |
R
>lqj"� c � � ] PH s ] PHs] PHs] PHs] PHs] PHs] PH s] PH$s ] PH(s
] PH,s] PH0s] PH4s
] PH8s] PH<s] QH@GsGsGsGsGsGs ] QH\Gs ] QHdGsGsGs ] QHtGsGsG s ] QH�G"s"G#s# ] QH�G%s% ] PH�s&] QH�G's'G(s(G)s)G*s* Qs+Q PQ
PQPQPQ
P-s,Q\Q\&QQQ,Q\OZ ] * QP
QP
Q\. \,]QPQ5 -s/\/Oa \,2 Q Q2 s1 Q Q\Od \12 s3 Q Q\Od \12 s4 Q Q \Od \12 s5\ Q! Q"\Od 2 2 s6\7Q#6X c \Op 2 P! P! )$� )�force_not_colorized_test_class�infinite_recursion�
no_tracing�requires_resource�requires_subprocess�verbose)�support)�forget�make_legacy_pyc�unload)�create_empty_file�temp_dir�FakePath)�make_script�make_zip_script)�temporary_pycache_prefix)� _run_code�_run_module_code�
run_module�run_patha� # Check basic code execution
result = ['Top level assignment']
def f():
result.append('Lower level reference')
f()
del f
# Check the sys module
import sys
run_argv0 = sys.argv[0]
run_name_in_sys_modules = __name__ in sys.modules
module_in_sys_modules = (run_name_in_sys_modules and
globals() is sys.modules[__name__].__dict__)
# Check nested operation
import runpy
nested = runpy._run_module_code('x=1\n', mod_name='<run>')
�__name__�__file__�__package__�__doc__�__spec__�sys�runpy�resultzTop level assignmentzLower level reference� run_argv0�run_name_in_sys_modules�module_in_sys_modules�nestedz<run>)�xr �
__loader__c �6 ` � \ sQ s]Ls n , QNsQ sQ sQsU sP! )�CodeExecutionMixinc � � UO 2 oUO 2 o[ U2 F Ds oUO Q2 % f J UO Q2 % f J5 V27 c UO U2 V2Q* 7 f J[ UQ* O U2 Ju UO Q2 oUO Q2 oUe U O U2 L�UO d9 U O [ UO 2 [ UO 2 2 U O F D7 oQU* oU[ VF2 1oU[ VV2 1oU O Vx2 J9 U O [ U2 [ U2 2 SF D( oV1U* 1oV2U* 1oU O Vx2 J* P! )zOCheck two namespaces match.
Ignores any unspecified interpreter created names
�__r! r z __spec__.)�copy�list�
startswith�endswith�pop�assertIsNone�loader�assertEqual�type�CHECKED_SPEC_ATTRIBUTES�getattr�set) �self� result_ns�expected_ns�k�result_spec�
expected_spec�attr�actual�expecteds &&& �$C:\Python315\\Lib\test\test_runpy.py�assertNamespaceMatches�)CodeExecutionMixin.assertNamespaceMatchesX ss � � �N�N�$� �!�&�&�(���i��A��|�|�D�!�!�a�j�j��&6�&6��'��M�M�!�$���1�1��h�'�+�+�A�.� !� �m�m�J�/��#���
�3�
�� ����k�*� �#�#�/�� � ��k�&8�&8�!9�!%�m�&:�&:�!;�=��4�4���$�&���W�[�7�8���w�}�;�<��� � ��2� 5�
����Y���[�)9�:��A��1��&�F��q�>�*�H����V�.� � c � � [ 2 oUO 2 oUQ* o[ O ] * o[ O O VS2 oU P2 oU O
V�2 U O [ O ] * U2 U O [ O O VS2 U2 QU-o V4Q$ U U 2 oU O V�2 U O
V�2 U O [ O ] * U2 U O [ O O VS2 U2 P! )z�Check that an interface runs the example code correctly
First argument is a callable accepting the initial globals and
using them to create the actual namespace
Second argument is the expected result
r �sentinel) �objectr( r �argv�modules�getr>