Skip to content

Commit

Permalink
Add a functional regression test. (#7451)
Browse files Browse the repository at this point in the history
Refs #2964
  • Loading branch information
mbyrnepr2 committed Sep 10, 2022
1 parent c13d8d9 commit 63738bf
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/functional/r/regression_02/regression_2964.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"""
Regression test for `no-member`.
See: https://github.com/PyCQA/pylint/issues/2964
"""

# pylint: disable=missing-class-docstring,too-few-public-methods
# pylint: disable=unused-private-member,protected-access


class Node:
def __init__(self, name, path=()):
"""
Initialize self with "name" string and the tuple "path" of its parents.
"self" is added to the tuple as its last item.
"""
self.__name = name
self.__path = path + (self,)

def get_full_name(self):
"""
A `no-member` message was emitted:
nodes.py:17:24: E1101: Instance of 'tuple' has no '__name' member (no-member)
"""
return ".".join(node.__name for node in self.__path)

0 comments on commit 63738bf

Please sign in to comment.