diff options
author | Samuel FORESTIER <HorlogeSkynet@users.noreply.github.com> | 2023-03-11 21:55:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 22:55:17 +0100 |
commit | b312b9a66472e17d02461258d2156d670481a7f6 (patch) | |
tree | 819e3ffed71e6886b0b229554daad80d9f161aa0 /tests | |
parent | 4c56ba82d7aac50b1ea34e929833c91418e1d117 (diff) | |
download | pylint-git-b312b9a66472e17d02461258d2156d670481a7f6.tar.gz |
Add Python 3.8+ `asyncSetUp` to "defining-attr-methods" list (#8403)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/a/attribute_defined_outside_init_py38.py | 9 | ||||
-rw-r--r-- | tests/functional/a/attribute_defined_outside_init_py38.rc | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/functional/a/attribute_defined_outside_init_py38.py b/tests/functional/a/attribute_defined_outside_init_py38.py new file mode 100644 index 000000000..7e93d1d29 --- /dev/null +++ b/tests/functional/a/attribute_defined_outside_init_py38.py @@ -0,0 +1,9 @@ +# pylint: disable=missing-docstring + +import unittest + + +class AsyncioTestCase(unittest.IsolatedAsyncioTestCase): + + async def asyncSetUp(self): + self.i = 42 diff --git a/tests/functional/a/attribute_defined_outside_init_py38.rc b/tests/functional/a/attribute_defined_outside_init_py38.rc new file mode 100644 index 000000000..1bfb860e8 --- /dev/null +++ b/tests/functional/a/attribute_defined_outside_init_py38.rc @@ -0,0 +1,5 @@ +[main] +load-plugins=pylint.extensions.typing + +[testoptions] +min_pyver=3.8 |