관리-도구
편집 파일: test_misc_util.cpython-37.pyc
B ��Fd� � @ s� d dl mZmZmZ d dlmZmZmZ d dlm Z m Z mZmZm Z d dlmZmZmZmZ dd� ZG dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�Zdd� Zedkr�e� dS )� )�division�absolute_import�print_function)�join�sep�dirname)� appendpath� minrelpath�gpaths�get_shared_lib_extension�get_info)�TestCase�run_module_suite�assert_�assert_equalc G s t tf| � S )N)r r )�paths� r ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/tests/test_misc_util.py�<lambda> � r c @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�TestAppendpathc C s\ t tdd�tdd�� t tdd�tdd�� t tdd�tdd�� t tdd�tdd�� d S )N�prefix�namez/prefixz/name)r r r �ajoin)�selfr r r �test_1 s zTestAppendpath.test_1c C sN t tdd�tddd�� t tdd�tdddd�� t tdd�tddd�� d S ) Nz prefix/subr r �subzsup/name�supz/prefix/subz/prefix/name)r r r r )r r r r �test_2 s zTestAppendpath.test_2c C sX t tdd�tdddd�� t tdd�tddd dd d�� t tdd�tddd dd�� d S )Nz/prefix/subz/prefix/sup/namer r r r z/prefix/sub/sub2z/prefix/sup/sup2/nameZsub2Zsup2z/prefix/sub/sup/name)r r r )r r r r �test_3 s zTestAppendpath.test_3N)�__name__� __module__�__qualname__r r r r r r r r s r c @ s e Zd Zdd� ZdS )�TestMinrelpathc C s� dd� }t t|d��|d�� t td�d� t t|d��d� t t|d��d� t t|d ��d � t t|d��d� t t|d��|d �� t t|d��|d�� t t|d��|d�� d S )Nc S s | � dt�S )N�/)�replacer )�pathr r r r ) r z'TestMinrelpath.test_1.<locals>.<lambda>zaa/bbz..zaa/..� zaa/../bb�bbzaa/bb/..�aazaa/bb/../..zaa/bb/../cc/../ddzaa/ddz.././..z../..zaa/bb/.././../dd�dd)r r )r �nr r r r ( s zTestMinrelpath.test_1N)r r! r"