File: //opt/alt/python312/lib64/python3.12/test/__pycache__/test_genericpath.cpython-312.opt-2.pyc
�
h�e+Y � � � d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ d dlmZ d dl m
Z
d dlmZ dd�Z
G d� d � Z G d
� deej � Z G d� d
e� Z G d� dej � Zedk( r ej( � yy)� N)�
is_emscripten)� os_helper)�warnings_helper)�assert_python_ok)�FakePathc �j � t | dd� 5 }|j |� d d d � y # 1 sw Y y xY w)N�xbr )�open�write)�filename�data�fps �</opt/alt/python312/lib64/python3.12/test/test_genericpath.py�create_filer s0 � �
�h��a� � �B�
������ � �s �)�2c � � e Zd Zg d�Zg Zd� Zd� Zd� Zd� Zd� Z e
j ee
d� d� e
j ed � d
� � � Zd� Zd� Zd
� Zd� Zej, d� � Z e
j ee
d� d� d� � Zd� Zd� Zej, d� � Z e
j ee
d� d� d� � Zd� Zy)�GenericTest)�commonprefix�getsize�getatime�getctime�getmtime�exists�isdir�isfilec �" � | j | j z D ]g }| j t � 5 t | j
|� � | j
dj | j
j |� � � y # 1 sw Y �txY w)Nz!{}.{}() did not raise a TypeError) �common_attributes�
attributes�assertRaises� TypeError�getattr�
pathmodule�fail�format�__name__)�self�attrs r �test_no_argumentzGenericTest.test_no_argument s� � ��*�*�T�_�_�<� I�D��"�"�9�-�
I�.������.�0��i�i� C�!'�����(@�(@�$�!G�I� I� I�
I�
I�s �AB�B c �� � | j j }| j |g � d� | j |ddg� d� | j |ddg� d� | j |ddg� d� | j |ddg� d � | j |d
dg� d� | j |d
d
g� d
� | j |d
dg� d� | j |ddg� d� | j |ddg� d� | j |ddg� d� | j |ddg� d� | j |ddg� d� g d�}|D ]� }|D ]{ } |||g� }| j |j |� � | j |j |� � ||k7 s�St |� }| j
|||dz |||dz � �} �� y )N� z/home/swenson/spamz/home/swen/spamz
/home/swenz/home/swen/eggsz/home/swen/zhome:swenson:spamzhome:swen:spamz home:swenz:home:swen:spamz:home:swen:eggsz:home:swen:s /home/swenson/spams /home/swen/spams
/home/swens /home/swen/eggss /home/swen/s home:swenson:spams home:swen:spams home:swens :home:swen:spams :home:swen:eggss :home:swen:)r) �abc�Xbcd�Xb�XY�abcd�aXc�abd�ab�aX�abcX� )r! r �assertEqual�
assertTrue�
startswith�len�assertNotEqual)r% r �testlist�s1�s2�p�ns r �test_commonprefixzGenericTest.test_commonprefix"