| Server IP : 121.121.20.254 / Your IP : 216.73.217.141 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 �p � ] PH s ] PHs] PHs] PHs] PHs] PHs] PHs] PHs] PH s] PH$s ] PH(s
] PH,s] QH0G
s
] QH8GsGsGs ] QHHGsGsGsGsGsGsGsGs \
O6 s, QNsQs\1Q ks\]1Q ks\
O@ Q Q\OB 2 2 s"Q s#\$Q
6X c \OJ 2 P! P! )� )�support)�
import_helper�is_apple� os_helper)�make_pkg�make_script�make_zip_pkg�make_zip_script�assert_python_ok�assert_python_failure�spawn_python�kill_pythonak # Script may be run with optimisation enabled, so don't rely on assert
# statements being executed
def assertEqual(lhs, rhs):
if lhs != rhs:
raise AssertionError('%r != %r' % (lhs, rhs))
def assertIdentical(lhs, rhs):
if lhs is not rhs:
raise AssertionError('%r is not %r' % (lhs, rhs))
# Check basic code execution
result = ['Top level assignment']
def f():
result.append('Lower level reference')
f()
assertEqual(result, ['Top level assignment', 'Lower level reference'])
# Check population of magic variables
assertEqual(__name__, '__main__')
from importlib.machinery import BuiltinImporter
_loader = __loader__ if __loader__ is BuiltinImporter else type(__loader__)
print('__loader__==%a' % _loader)
print('__file__==%a' % __file__)
print('__package__==%r' % __package__)
# Check PEP 451 details
import os.path
if __package__ is not None:
print('__main__ was located through the import system')
assertIdentical(__spec__.loader, __loader__)
expected_spec_name = os.path.splitext(os.path.basename(__file__))[0]
if __package__:
expected_spec_name = __package__ + "." + expected_spec_name
assertEqual(__spec__.name, expected_spec_name)
assertEqual(__spec__.parent, __package__)
assertIdentical(__spec__.submodule_search_locations, None)
assertEqual(__spec__.origin, __file__)
# Check the sys module
import sys
assertIdentical(globals(), sys.modules[__name__].__dict__)
if __spec__ is not None:
# XXX: We're not currently making __main__ available under its real name
pass # assertIdentical(globals(), sys.modules[__spec__.name].__dict__)
from test import test_cmd_line_script
example_args_list = test_cmd_line_script.example_args
assertEqual(sys.argv[1:], example_args_list)
print('sys.argv[0]==%a' % sys.argv[0])
print('sys.path[0]==%a' % sys.path[0])
# Check the working directory
import os
print('cwd==%a' % os.getcwd())
c �J � [ VU2 o[ O 2 U! �N)r � importlib�invalidate_caches)�
script_dir�script_basename�source� to_returns &&& �.C:\Python315\\Lib\test\test_cmd_line_script.py�_make_test_scriptr L s � ��J��@�I�
���!��� c �L � [ VV#VE2 o[ O 2 U! r )r r r )�zip_dir�zip_basename�pkg_namer r �depthr s &&&&&& r �_make_test_zip_pkgr Q s% � ��W�H�#�,�I�
���!��r c � ` � \ sQ s]Ys n QDQ ksQP-Q ksQP-Q ksQ sQ s\ O QEQ k2 sQEQ ksQEQ ks
Q
sQ sQ sQ
sQ sQ sQ sQ sQ sQ sQ sQ sQ sQ sQ sQ sQ sQ sQ s Q s!Q s"Q s#Q s$Q! s%Q" s&Q# s'\ O Q$ 2 s(Q% s)Q& s*Q' s+Q( s,Q) s-Q* s.Q+ s/Q, s0Q- s1Q. s2Q/ s3Q0 s4Q1 s5Q2 s6Q3 s7Q4 s8Q5 s9Q6 s:Q7 s;Q8 s<Q9 s=\>O~ \@O� O� Q:2 Q;2 \>O� \DO� O� Q<2 9% c: \@O� Q=2 O� \@O� Q>2 O� 6H Q?2 Q@ 2 2 sIQA sJQB sKQCsLU sMP! )F�CmdLineTestc
�| � [ ]6� c'