← Back
Editing: test_paths.cpython-311.pyc
� �@�c� � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlmZ d dl m Z mZmZ d dl mZ d dlmZ ej � ej � � � � Zej � ed� � Zej � ed� � Zej � ed � � Zej � ed � � Zd� Zd� Zd � Zd� Zd� Zd� Zd� Z d� Z!d� Z"d� Z#ed� � � Z$d� Z%d� Z&d� Z'dS )� N)�patch)�TemporaryDirectory)�assert_isdir� assert_isfile�modified_env)�paths)� skip_win32� home_test_dir�xdg_test_dir� xdg_cache_dir�.ipythonc � � t j t � � t j t j � t d� � � � t j t j � t d� � � � dS )zRSetup testenvironment for the module: - Adds dummy home dir tree �ipythonN)�os�makedirs�IP_TEST_DIR�path�join�XDG_TEST_DIR� XDG_CACHE_DIR� � �?/usr/lib/python3/dist-packages/IPython/core/tests/test_paths.py�setup_moduler sZ � � �K������K�����\�9�5�5�6�6�6��K�����]�I�6�6�7�7�7�7�7r c �8 � t j t � � dS )zWTeardown testenvironment for the module: - Remove dummy home dir tree N)�shutil�rmtree�TMP_TEST_DIRr r r �teardown_moduler ! s � � �M�,�����r c �: � t j t d| �� � S )N�get_home_dir��return_value)r �objectr )�dirpaths r �patch_get_home_dirr&