| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 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 �> � Q s ] PHs] QHGs ] PHs] PHs\ \Q2 % f \O Q2 g\O s Q\ 7 c Q\ * Q* s \O 2 Q Q\O 2 2 s\
Q6X c \O 2 P! P! ) zOBasic tests for os.popen()
Particularly useful for platforms that fake popen.
)�support�popenzneed os.popen()� �"c �F ` � \ sQ s]s n Q sQ sQ sQ sQ sQ s Qs
U sP! )� PopenTestc � � Q oU[ U1* o[ O U2 9^tt^ 2 oUO 2 oPPP2 [ W2 Q* oU O Vb2 P! ) % f h K59 h)z&%s -c "import sys; print(sys.argv)" %s:� NN)�python�osr �read�eval�assertEqual)�self�cmdline�expected�cmd�p�data�gots &&& �$C:\Python315\\Lib\test\test_popen.py�_do_test_commandline�PopenTest._do_test_commandline sX � �6���V�W�%�%��
�X�X�c�]�]�a��6�6�8�D� ��4�j��n������'� �]�s �A/�/A? �8A? c �� � U O [ [ O 2 U O Q QQ,2 U O Q, QN2 U O Q, QN2 [
O 2 P! )zfoo bar�foo�barz foo "spam and eggs" "silly walk"zfoo "a \"quoted\" arg" bar)r z
spam and eggsz
silly walk)r za "quoted" argr )�assertRaises� TypeErrorr
r r r �
reap_children)r s &r �
test_popen�PopenTest.test_popen! sh � ����)�R�X�X�.��!�!��
�E�N�
�
�!�!�.�2�
�
�!�!�*�,�
� ���� c �V � U O [ O Q 2 O 2 P2 [ O Q2 O 2 o[ O Q6X c U O U]*2 P! U O [ O
U2 ]*2 P! )zexit 0zexit 42�nt)r
r
r �close�name�waitstatus_to_exitcode)r �statuss & r �test_return_code�PopenTest.test_return_code1 sq � �������(�+�1�1�3�T�:����)�$�*�*�,��
�7�7�d�?����V�R�(����R�6�6�v�>��Cr c �( � [ O Q 2 9^tt^ 2 oU O UO 2 Q2 U O UO
2 PPP2 U O
WO
2 P! ) % f h K-9 h��
echo hello�hello
�r
r r
r �assertFalse�closed�
assertTrue�r �fs & r �test_contextmanager�PopenTest.test_contextmanager9 s[ � �
�X�X�l�
#�
#�q����Q�V�V�X�y�1����Q�X�X�&� $�
������!� $�
#�s �<B�B �
B c � � [ O Q 2 9^tt^ 2 oU O [ U2 Q,2 U O UO
2 PPP2 U O
WO
2 P! ) % f h K-9 hr* )r
r r
�listr. r/ r0 r1 s & r �test_iterating�PopenTest.test_iterating? s[ � �
�X�X�l�
#�
#�q����T�!�W�y�k�2����Q�X�X�&� $�
������!� $�
#�s �8A=�=B
�B
c �. � [ O Q QPQ5 9^tt^ 2 oU O UO 2 Q2 U O UO
2 PPP2 U O
WO
2 P! ) % f h K-9 h)r+ �r)r �mode� bufferingr, r- r1 s & r �
test_keywords�PopenTest.test_keywordsE sa � �
�X�X�,�S�B�
?�
?�1����Q�V�V�X�y�1����Q�X�X�&� @�
������!� @�
?�s �<B�B �
B � )�__name__�
__module__�__qualname__�__firstlineno__r r r'