HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //snap/core22/2133/usr/lib/python3/dist-packages/probert/tests/__pycache__/helpers.cpython-310.pyc
o

?�^��@sVddlZddlZddlZddlZddlZddlZdd�Zejd	dd��Zd
dd�Z	dS)�Nc	CsPd}|D]!}zt�|�Wn	tyYqwtd|�t�|�|SdS)N)�builtins�__builtin__zimporting and returning: %s)�imp�find_module�ImportError�print�	importlib�
import_module)�options�name�r�7/usr/lib/python3/dist-packages/probert/tests/helpers.py�builtin_module_names�
�rccsb�|sd}tj|d�}t�}d�|�}tj||dd��|VWd�dS1s*wYdS)N�)�	read_dataz{}.openT)�create)�mock�	mock_openr�format�patch)�content�m_open�mod_name�m_patchrrr
�simple_mocked_open$s�
"�r�cCsd�dd�t|�D��S)z: return a random lowercase string with default length of 8rcss�|]	}t�tj�VqdS�N)�random�choice�string�ascii_lowercase)�.0�_rrr
�	<genexpr>1s�
�z random_string.<locals>.<genexpr>)�join�range)�lengthrrr
�
random_string/s
�r'r)r)
�
contextlibrrrrrr�contextmanagerrr'rrrr
�<module>s