← Back
Editing: test_alias.cpython-311.pyc
� �@�c� � �2 � d dl mZ d dlZd� Zd� Zd� Zd� ZdS )� )�capture_outputNc � � d} d}t j }|� � � |� | |� � |� | � � sJ �|� | � � |k sJ �| |f|j v sJ �t j }g }|j t _ t � d� | � � � � d� |D � � }||gk sJ � |t _ n# |t _ w xY w|� | � � |� | � � rJ �t j t � � 5 |� | � � d d d � � n# 1 swxY w Y | |f|j vsJ �d S )N�test_alias1zecho "Hello"z%{}c �6 � g | ]}|� � � ��S � )�strip)�.0�cs �?/usr/lib/python3/dist-packages/IPython/core/tests/test_alias.py� <listcomp>z(test_alias_lifecycle.<locals>.<listcomp> s � �,�,�,��!�'�'�)�)�,�,�,� )�_ip� alias_manager� clear_aliases�define_alias�is_alias�retrieve_alias�aliases�system�append�run_cell�format�undefine_alias�pytest�raises� ValueError)�name�cmd�am�orig_system�results r �test_alias_lifecycler"