ast wrote at 2020-5-4 15:20 +0200:
>doctest of the sample function funct() doesn't works
>because flag used by funct() is the one defined in
>first line "flag = True" and not the one in the
>doctest code ">>> flag = False".
>
>Any work around known ?
>
>
>flag = True # <- funct() alway
Unknown wrote:
> Hello
>
> doctest of the sample function funct() doesn't works
> because flag used by funct() is the one defined in
> first line "flag = True" and not the one in the
> doctest code ">>> flag = False".
>
> Any work around known ?
You can import the module where funct() is define
Hello
doctest of the sample function funct() doesn't works
because flag used by funct() is the one defined in
first line "flag = True" and not the one in the
doctest code ">>> flag = False".
Any work around known ?
flag = True # <- funct() always use this one
def funct():
"""