1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
U
®ý°dã@shddlmZddlZddlmZddlmZdd„Zdd„Z    dd    „Z
d
d „Z d d „Z dd„Z dd„ZdS)é)ÚdedentN)Ú    deprecatecCsdS)zŽ
    This is the summary. The deprecate directive goes next.
 
    This is the extended summary. The deprecate directive goes before this.
    únew_func called©rrrúWd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/util/test_deprecate.pyÚnew_func
srcCsdS)Núnew_func_no_docstring calledrrrrrÚnew_func_no_docstringsr    cCsdS)z#Summary should be in the next line.znew_func_wrong_docstring calledrrrrrÚnew_func_wrong_docstringsr
cCsdS)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.
    NrrrrrÚnew_func_with_deprecationsr c    CsPtdtddd}t t¡ |ƒ}W5QRX|dks8t‚|jttjƒksLt‚dS)NÚ    depr_funcú1.0úUse new_func instead.©Úmsgr)    rrÚtmÚassert_produces_warningÚ FutureWarningÚAssertionErrorÚ__doc__rr ©r ÚresultrrrÚtest_deprecate_ok's
  rc    Cs<tdtddd}t t¡ |ƒ}W5QRX|dks8t‚dS)Nr r rrr)rr    rrrrrrrrÚtest_deprecate_no_docstring1sÿ rc    Cs2d}tjt|dtdtdddW5QRXdS)Nz/deprecate needs a correctly formatted docstring)Úmatchr r rr)ÚpytestZraisesrrr
rrrrÚtest_deprecate_wrong_docstring:sÿr)ÚtextwraprrZpandas.util._decoratorsrZpandas._testingZ_testingrrr    r
r rrrrrrrÚ<module>s