
    &e                         d dl Z d dlZd dlmZ ej                            e          Zej        	                    ed          Z
d Zd Zd ZdS )    N)openpyz../../core/tests/nonascii.pyc                      t          t          d          5 } t          j        | j                  \  }}d d d            n# 1 swxY w Y   |dk    sJ d S )Nrb
iso-8859-5)opennonascii_pathr   detect_encodingreadline)fencliness      ?lib/python3.11/site-packages/IPython/utils/tests/test_openpy.pytest_detect_encodingr   
   s    	mT	"	" 8a+AJ77
U8 8 8 8 8 8 8 8 8 8 8 8 8 8 8,s   ?AAc                  (   t          j        t          d          5 } |                                 }d d d            n# 1 swxY w Y   t	          j        t          d          }||k    sJ d|v sJ t	          j        t          d          }d|vsJ d S )Nr   )encodingFskip_encoding_cookiecoding: iso-8859-5T)ior   r   readr   read_py_file)r   read_specified_encread_detected_encread_strip_enc_cookies       r   test_read_filer      s    		6	6	6 &!VVXX& & & & & & & & & & & & & & &+MPUVVV 22222#44444"/D    '<<<<<<<s   =AAc                  p   t          j        t          d          5 } |                                 }d d d            n# 1 swxY w Y   t	          j        |d                                          |                    d                                          k    sJ t	          j        |d          }d|vsJ d S )Nr   Fr   r   Tr   )r   r   r   r   r   source_to_unicode
splitlinesdecode)r   source_bytessource_no_cookies      r   test_source_to_unicoder"      s    		%	%  vvxx                              	 EJJJUUWW|,,7799	: 	: 	: 	: /SWXXX'7777777s   <A A )r   os.pathosIPython.utilsr   pathdirname__file__mydirjoinr   r   r   r"        r   <module>r-      s    				             
!!U$BCC  
= 
= 
=	8 	8 	8 	8 	8r,   