+
    Bi&                         ^ RI t ^ RIHt ^ RIHt ]P
                  ! RR.R7      tR t ! R R	] P                  4      t	R# )
    N)support)import_helper_wmiwin)required_onc                     \         P                  ! \         P                  4       F  p \        P	                  V 4      u # 	  R#   \
         d     K-  \         d   pTP                  R 8w  d   h  Rp?KO  Rp?ii ; i)i  N)r   sleeping_retryLONG_TIMEOUTr   
exec_queryBrokenPipeErrorWindowsErrorwinerror)query_excs   &  $/usr/lib/python3.14/test/test_wmi.pywmi_exec_queryr      sb    ##G$8$89	??5)) :  	 	||s" #	s#   AA9A9A9A44A9c                   z   a  ] tR t^t o R tR tR tR tR t]	P                  ! R4      R 4       tR tR	 tR
tV tR# )WmiTestsc                >   \        R 4      P                  R4      pV P                  ^\        V4      4       V^ ,          P	                  R4      w  r#pV P                  RW1^ ,          4       V P                  RW!^ ,          4       V P                  VRV^ ,          4       R# )z)SELECT Version FROM Win32_OperatingSystem =Versionz\d+\.\d+.+$N)r   splitassertEquallen	partitionassertRegex)selfrkeqvs   &    r   test_wmi_query_os_version"WmiTests.test_wmi_query_os_version   s    FGMMdSCF#Q4>>#&qbA$'At, 	NAaD1    c                J    \        ^
4       F  pV P                  4        K  	  R# 
   N)ranger$   r   r   s   & r   test_wmi_query_repeated WmiTests.test_wmi_query_repeated&   s    rA**, r&   c                     \        R 4       V P                  R4       R#   \         d)   pTP                  R,          R8X  d    Rp?R#  Rp?LARp?ii ; i)z.SELECT InvalidColumnName FROM InvalidTableNamel    l     NzExpected OSError)r   OSErrorr   fail)r   exs   & r   test_wmi_query_errorWmiTests.test_wmi_query_error+   sJ    	KL
 			$%	  	{{Z':5 6	s     AAAc                J    \        ^
4       F  pV P                  4        K  	  R# r(   )r*   r2   r+   s   & r   test_wmi_query_repeated_error&WmiTests.test_wmi_query_repeated_error5   s    rA%%' r&   c                    V P                  \        4      ;_uu_ 4        \        R 4       RRR4       R#   + '       g   i     R# ; i)z0not select, just in case someone tries somethingN)assertRaises
ValueErrorr   )r   s   &r   test_wmi_query_not_select"WmiTests.test_wmi_query_not_select9   s+    z**MN +***s	   4A	cpuc                    \        ^4       F4  pV P                  \        4      ;_uu_ 4        \        R4       RRR4       K6  	  R#   + '       g   i     KK  ; i)   zSELECT * FROM CIM_DataFileN)r*   r8   r/   r   r+   s   & r   test_wmi_query_overflow WmiTests.test_wmi_query_overflow>   s>     qA""7++;< ,+ +++s   AAc                ,   \        R 4      pV P                  VR4       V P                  VR4       \        VP	                  R4      4      p  V P                  \        V4      R4       V P                  R\        V4      4       K9    \         d     R# i ; i):SELECT ProcessId FROM Win32_Process WHERE ProcessId < 1000r   zProcessId=\d+ N)	r   assertNotStartsWithassertNotEndsWithiterr   r   nextr   StopIteration)r   r    its   &  r   test_wmi_query_multiple_rows%WmiTests.test_wmi_query_multiple_rowsF   s    WX  D)q$'!''$- 	  b+;<  T"X. 		s   9B BBc           	     &   ^ RI Hp RpV! ^4      ;_uu_ 4       p\        ^ 4       Uu. uF  qCP                  \        V4      NK  	  ppV F#  pV P                  VP                  4       R4       K%  	  RRR4       R# u upi   + '       g   i     R# ; i)r   )ThreadPoolExecutorrB   z
ProcessId=N)concurrent.futuresrM   r*   submitr   r   result)r   rM   r   poolr   taskts   &      r   test_wmi_query_threadsWmiTests.test_wmi_query_threadsS   so    9L""d@Eb	J	1KK6	DJ  \:  #"J #""s   A?A:+A?:A??B	 N)__name__
__module____qualname____firstlineno__r$   r,   r2   r5   r:   r   requires_resourcer?   rJ   rT   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sM     2-
&(O
 u%= &=; ;r&   r   )
unittesttestr   test.supportr   import_moduler   r   TestCaser   rV   r&   r   <module>rd      s=      & ""6w?
>;x   >;r&   