1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
U
Z±d™ã@shddlZddlZddlZddlZddlZddlmZddlmZm    Z    m
Z
dZ dd„Z dd„Z d    d
„ZdS) éN)Úcopyfile)Úget_public_methodsÚcreate_passthrough_argsÚprocessaCfrom _run import _public
 
class Test:
    @_public
    def public_func(self):
        """With doc string"""
 
    @ignore_this
    @_public
    @another_decorator
    async def public_async_func(self):
        pass  # no doc string
 
    def not_public(self):
        pass
 
    async def not_public_async(self):
        pass
cCs0ttt t¡ƒƒ}dd„|Dƒddhks,t‚dS)NcSsh|]
}|j’qS©)Úname)Ú.0ÚmrrúXd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\trio/tests/tools/test_gen_exports.pyÚ    <setcomp>%sz*test_get_public_methods.<locals>.<setcomp>Z public_funcZpublic_async_func)ÚlistrÚastÚparseÚSOURCEÚAssertionError)Úmethodsrrr
Útest_get_public_methods#srcCsTdddddg}|D]<\}}t |d¡jd}t|tjƒs>t‚t|ƒ|kst‚qdS)N)zdef f()z())z
def f(one)z(one))zdef f(one, two)z
(one, two))zdef f(one, *args)z (one, *args))z*def f(one, *args, kw1, kw2=None, **kwargs)z((one, *args, kw1=kw1, kw2=kw2, **kwargs)z:
  passr)r rÚbodyÚ
isinstanceZ FunctionDefrr)Z    testcasesZfuncdefÚexpectedZ    func_noderrr
Útest_create_pass_through_args(sû rc    CsÞ|d}|d}|jtdd| ¡r*t‚t t¡}tt|ƒdfgddW5QRX|j    j
dksft‚tt|ƒdfgd    d| ¡sˆt‚tt|ƒdfgddt t¡}tt|ƒd
fgddW5QRX|j    j
dksÚt‚dS) Nz
_module.pyz_generated_module.pyzutf-8)ÚencodingÚrunnerT)Zdo_testéFzrunner.io_manager) Ú
write_textrÚexistsrÚpytestZraisesÚ
SystemExitrÚstrÚvalueÚcode)Ztmp_pathÚmodpathZgenpathÚexcinforrr
Ú test_process:s      r#)r ZastorrÚosÚsysÚshutilrZtrio._tools.gen_exportsrrrrrrr#rrrr
Ú<module>s