diff options
Diffstat (limited to 'tests/functional/n/no/no_self_use.py')
-rw-r--r-- | tests/functional/n/no/no_self_use.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/functional/n/no/no_self_use.py b/tests/functional/n/no/no_self_use.py index f84ab1573..8311da0f0 100644 --- a/tests/functional/n/no/no_self_use.py +++ b/tests/functional/n/no/no_self_use.py @@ -17,6 +17,13 @@ class Toto(object): """this method isn' a real method since it doesn't need self""" print('hello') + async def async_regular_method(self): + """this async method is a real method since it accesses self""" + await self.async_function_method() + + async def async_function_method(self): # [no-self-use] + """this async method isn't a real method since it doesn't need self""" + print('hello') class Base(object): """an abstract class""" |