+
    i(                        ^ RI t ^ RIt^ RIt^ RIHt ^ RIt^ RIt^ RIHt ]P                  P                  R. RO4      R 4       t]P                  P                  ]P                  R8H  RR7      ]P                  P                  ]P                  R8g  ;'       d    ] P                  ! 4       ^ 8H  R	R7      R
 4       4       tR tR tR t]! R4      R 4       tR# )    N)patch)subprocess_run_for_testingzversion_str, version_tuplec                 @    \         P                  ! V 4      V8X  g   Q hR # )N)
matplotlib_parse_to_version_info)version_strversion_tuples   &&ڀ/Users/tonyclaw/.openclaw/workspace/skills/math-calculator/venv/lib/python3.14/site-packages/matplotlib/tests/test_matplotlib.pytest_parse_to_version_infor      s     ,,[9]JJJ    win32z%chmod() doesn't work as is on Windows)reasonzchmod() doesn't work as rootc                   \         P                  ! V 4      P                  p \         P                  ! V ^ 4       \	        \
        P                  RR./ \         P                  CR\        V 4      /C\        P                  RRR7      pRVP                  9   g   Q h \         P                  ! W4       R#   \         P                  ! Y4       i ; i)zETest that a warning is emitted if a temporary configdir must be used.-czimport matplotlibMPLCONFIGDIRT)envstderrtextcheckzset the MPLCONFIGDIRN)osstatst_modechmodr   sys
executableenvironstr
subprocessPIPEr   )tmp_pathmodeprocs   &  r
   test_tmpconfigdir_warningr#      s     778$$D!
1)^^T#67=2::=~s8}=??T; &444
  s   A6B1 1C	c                 ~    \        \        P                  R R./ \        P                  CR\        V 4      /CRR7       R# )r   zOimport pathlib; pathlib.Path.home = lambda *args: 1/0; import matplotlib.pyplotr   Tr   r   N)r   r   r   r   r   r   )r    s   &r
   test_importable_with_no_homer&   (   s9    	
$	% :rzz9>3x=9	Gr   c                    R p ^ RI HpHp \        V ! R4      4      \        VP	                  VP
                  4      4      8X  g   Q h\        V ! R4      4      \        VP	                  VP                  4      4      8X  g   Q hR# )zw
Test that the standard backends mentioned in the docstring of
matplotlib.use() are the same as in matplotlib.rcsetup.
c                 j   . p\         P                  P                  P                  V 4      ^,          P                  R4       Fh  pVP	                  4       '       g    V# YP                  R4       Uu. uF*  q3'       g   K  VP	                  4       P                  4       NK,  	  up,          pKj  	  V# u upi )   
,)r   use__doc__splitstriplower)keybackendslinees   &   r
   parse-test_use_doc_standard_backends.<locals>.parse5   s    NN**005a8>>tDD::<< JJsOIOqq**OIIH E  Js   1	B0?"B0)BackendFilterbackend_registryz- interactive backends:
z- non-interactive backends:
N)matplotlib.backendsr7   r8   setlist_builtinINTERACTIVENON_INTERACTIVE)r5   r7   r8   s      r
   test_use_doc_standard_backendsr>   0   s    
 D123 --m.G.GHIJ K J567 --m.K.KLMN O Nr   c                 r    Rp \        \        P                  RRV ./ \        P                  CRR/CRR7       R# )	z
When using -OO or export PYTHONOPTIMIZE=2, docstrings are discarded,
this simple test may prevent something like issue #17970.
zimport matplotlib as mpl; import matplotlib.pyplot as plt; import matplotlib.cbook as cbook; import matplotlib.patches as mpatchesz-OOr   
MPLBACKEND Tr%   N)r   r   r   r   r   )programs    r
   test_importable_with__OOrC   E   s;    	0  	g.,rzz,<,D
r   z"matplotlib.subprocess.check_outputc                   \         P                  ! R.^R7      V n        \        P                  ! \
        P                  RR7      ;_uu_ 4        \
        P                  P                  R4       RRR4       R#   + '       g   i     R# ; i)zY
Test that _get_executable_info raises ExecutableNotFoundError if the
command times out.
mock)cmdtimeoutz	Timed out)matchinkscapeN)	r   TimeoutExpiredside_effectpytestraisesr   ExecutableNotFoundError_get_executable_info__wrapped__)mock_check_outputs   &r
    test_get_executable_info_timeoutrR   V   sX     %/$=$=6(TV$W!	z99	M	M''33J? 
N	M	M	Ms    A77B	))z3.5.0)      r   finalr   )z3.5.0rc2)rS   rT   r   	candidate   )z3.5.0.dev820+g6768ef8c4c)rS   rT   r   alpha4  )z3.5.0.post820+g6768ef8c4c)rS   rT   r)   rX   rY   )r   r   r   unittest.mockr   rL   r   matplotlib.testingr   markparametrizer   skipifplatformgeteuidr#   r&   r>   rC   rR    r   r
   <module>rb      s    	  
    9 5 8 KK CLLG+B  DCLLG+AA

0A9  ;!;D!GO*
" +,	@ -	@r   