Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/pandas/tests/util/__pycache__/test_deprecate.cpython-37.pyc
Назад
B �5�gZ � @ sh d dl mZ d dlZd dlmZ d dlmZ dd� Zdd� Z dd � Z d d� Zdd � Zdd� Z dd� ZdS )� )�dedentN)� deprecatec C s dS )z� This is the summary. The deprecate directive goes next. This is the extended summary. The deprecate directive goes before this. znew_func called� r r r �V/home/digitalm-up/venv/lib/python3.7/site-packages/pandas/tests/util/test_deprecate.py�new_func s r c C s dS )Nznew_func_no_docstring calledr r r r r �new_func_no_docstring s r c C s dS )z#Summary should be in the next line.znew_func_wrong_docstring calledr r r r r �new_func_wrong_docstring s r c C s dS )z� This is the summary. The deprecate directive goes next. .. deprecated:: 1.0 Use new_func instead. This is the extended summary. The deprecate directive goes before this. Nr r r r r �new_func_with_deprecation s r c C sP t dtddd�} t�t�� | � }W d Q R X |dks8t�| jttj�ksLt�d S )N� depr_funcz1.0zUse new_func instead.)�msgznew_func called) r r �tm�assert_produces_warning� FutureWarning�AssertionError�__doc__r r )r �resultr r r �test_deprecate_ok( s r c C s<