
    daf                        d dl Z d dlmZ d dlmZ d dlZd dlZd dlZd dlmZ  ej                  ed      Z
 e j                   ej                         d       G d de j                               Zed	k(  r e j                          yy)
    N)support)	os_helper)path	startfilezAstarting files is not supported on Windows IoT Core or nanoserverc                       e Zd Zd Zd Zd Zy)TestCasec                 :    | j                  t        t        d       y )Nznonexisting.vbs)assertRaisesOSErrorr   )selfs    ./root/Python-3.12.4/Lib/test/test_startfile.pytest_nonexistingzTestCase.test_nonexisting   s    '9.?@    c                 ~   t        j                  t        j                  t        j
                              5  t        j                  t        j                  t              d      }t        |       t        |d       d d d        t        t        j                  t        j
                               y # 1 sw Y   8xY w)Nz	empty.vbsopen)cwd)	r   
change_cwdr   dirnamesys
executablejoin__file__r   )r   emptys     r   
test_emptyzTestCase.test_empty   sx    
 !!$,,s~~">? 	%IIdll84kBEeeV$	% 	%T\\#..9:		% 	%s   AB33B<c                     t        j                  t        j                        \  }}t	        |d|       t	        |d|d       y )Nz-V)	argumentsr   r   )r   r   show_cmd)r   splitr   r   r   )r   r   names      r   test_pythonzTestCase.test_python%   s4     JJs~~.	T$$C0$$C!<r   N)__name__
__module____qualname__r   r   r     r   r   r   r      s    A	;=r   r   __main__)unittesttestr   test.supportr   osplatformr   r   get_attributer   skipIfwin32_is_iotr   r!   mainr$   r   r   <module>r/      s      " 	  
 !G!!"k2	 &&&(*mn=x   = o=, zHMMO r   