+
    ,i                        ^ RI t ^ RIt^ RIHt ^ RIt^ RIHt  ^ RI	H
t
 ]P                  P                  R4      R 4       t]P                  P                  R4      R	 4       t]P                  P                  R4      R
 4       t]P                  P                  R4      R 4       tR#   ] d    ]P                  ! RRR7        Li ; i)    N)mock)_macosxzThese are mac only testsT)allow_module_levelmacosxc                  R   \         P                  ! ^4      p V P                  P                  4        V P                  P	                  4       P
                  f   Q h\         P                  ! ^4      p V P                  4        V P                  P	                  4       P
                  f   Q hR# )   N)pltfigurecanvasdrawget_renderer	_rendererdraw_without_rendering)figs    F/usr/lib/python3/dist-packages/matplotlib/tests/test_backend_macosx.pytest_cached_rendererr      sv     **Q-CJJOO::""$..:::
**Q-C ::""$..:::    c                   a V3R  lpV P                  \        RV4       \        P                  ! 4       p\        P
                  ! RS/4      ;_uu_ 4        VP                  P                  P                  4        S RVP                  P                  4        2p\        P                  P                  V4      '       g   Q h\        P                  R,          S R28X  g   Q h RRR4       R#   + '       g   i     R# ; i)c                 h   < V\        S4      8X  g   Q h\        P                  ! V R 24       V RV 2# )/test/test/)strosmakedirs)title	directoryfilenametmp_paths   &&&r   new_choose_save_file2test_savefig_rcparam.<locals>.new_choose_save_file   s;     CM)))
yk'(F8*--r   choose_save_filezsavefig.directoryr   r   N)setattrr   r	   r
   mpl
rc_contextr   toolbarsave_figureget_default_filenamer   pathexistsrcParams)monkeypatchr   r   r   	save_files   &f   r   test_savefig_rcparamr-      s    . !35IJ
**,C	,h7	8	8

&&(jszz'F'F'H&IJ	ww~~i(((( ||/0xj4FFFF 
9	8	8	8s   BC++C<	c                  ,    ^ RI Hp  V ! RRRRR/4       R# )r   ipython_in_subprocessosxr   MacOSXN)      )   r   )matplotlib.testingr0   r/   s    r   test_ipythonr7   2   s    8%'8VX!FGr   c                  V   \         P                  ! 4       w  rVP                  ^..4       Rp\        P                  ! VRR7      ;_uu_ 4        V P
                  P                  P                  P                  4       p\        P                  ! R4       VR8X  g   Q h RRR4       \        P                  ! VRR7      ;_uu_ 4        V P
                  P                  P                  P                  4       pVe   Q h RRR4       R#   + '       g   i     Lp; i  + '       g   i     R# ; i)r   z,matplotlib.backends._macosx.choose_save_filez
foobar.png)return_valueN)r	   subplotsimshowr   patchr   managerr%   r&   r   remove)r   axpropfnames       r   test_save_figure_returnrB   8   s    llnGCIIse9D	D|	4	4

""**668
		,$$$ 
5 
Dt	,	,

""**668}} 
-	,	 
5	4 
-	,	,s   AD5DD	D(	)r   pytestunittestr   
matplotlibr#   matplotlib.pyplotpyplotr	   matplotlib.backendsr   ImportErrorskipmarkbackendr   r-   r7   rB    r   r   <module>rN      s    	    E+
 X	; 	; XG G, XH H
 X
 
_  E
KK*tDEs   B& &CC