Format: application/x-python-code
1 o
2
3 ��h:
4 � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZe�d� ddl m
5 Z
6 dd� Zdd� Zej
7 d d
8 d�dd
9 � �Zddd�Zdd� Zdd� Ze� dS )� NzIPython.testing.tools� )�toolsc C s4 | D ]}t �|j�r|�d� t �|j�rJ �qdS )z�This function is automatically run by pytest passing all collected test
10 functions.
11
12 We use it to add asyncio marker to all async tests and assert we don't use
13 test functions that are async generators which wouldn't make sense.
14 �asyncioN)�inspect�iscoroutinefunction�objZ
15 add_marker�isasyncgenfunction)�items�item� r �Fc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/conftest.py�pytest_collection_modifyitems s
16
17 �r
18 c C s: ddl m} | jr
19 | �� S t�� }d|j_| j|d�}|S )Nr )�TerminalInteractiveShellT)�config)Zterminal.interactiveshellr Z _instance�instancer Zdefault_configZ
20 simple_prompt)r r �shellr r r �get_ipython s r �sessionT)�scopeZautousec c sR � t �d�} t| �� �tjd<