File: D:/Python311/Lib/test/__pycache__/test_unicode.cpython-311.opt-2.pyc
�
��Vc . � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlmZ d dlm
Z
d dlmZmZ d dlmZ d dlZn
# e$ r dZY nw xY wd� Zd� Z G d� d e� � Z G d
� dej ej ej e j � � Z G d� d
e j � � Z G d� de j � � Ze dk r e j! � � dS dS )� N)�
import_helper)�warnings_helper)�support�string_tests)�assert_python_failurec �V � dd�}dd�}dd�}dd�}| dk r||d d fS | dk r||d d fS d S ) N�strictc � � dS �N�* � ��input�errorss �%D:\Python311\Lib\test\test_unicode.py�decode1z search_function.<locals>.decode1 � � ��r� c � � dS r r
r s r �encode1z search_function.<locals>.encode1! r r c � � dS �N)r r r
r s r �encode2z search_function.<locals>.encode2# � � ��xr c � � dS r r
r s r �decode2z search_function.<locals>.decode2% r r �
test.unicode1�
test.unicode2)r r
)�encodingr r r r s r �search_functionr s� � �� � � �� � � �� � � �� � � ��� � ���$��-�-� �?� "� ���$��-�-��tr c �P � | � � � � � � S �N)�encode�decode)�texts r �duplicate_stringr&