diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-30 11:02:09 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-30 12:46:01 +0200 |
commit | 5c0168de35be72197153b0419533130eb39419d9 (patch) | |
tree | 19fcb3e39701c09bd73dc480abc556e64929ad5c /tests/functional/r/regression/regression_issue_4633.py | |
parent | 0f6a38ee54362ae2e4f5f294f26942261d61485e (diff) | |
download | pylint-git-5c0168de35be72197153b0419533130eb39419d9.tar.gz |
Add a regression test for issue #4633
Diffstat (limited to 'tests/functional/r/regression/regression_issue_4633.py')
-rw-r--r-- | tests/functional/r/regression/regression_issue_4633.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/functional/r/regression/regression_issue_4633.py b/tests/functional/r/regression/regression_issue_4633.py new file mode 100644 index 000000000..bd9502acd --- /dev/null +++ b/tests/functional/r/regression/regression_issue_4633.py @@ -0,0 +1,22 @@ +# pylint: disable=missing-docstring,too-few-public-methods,no-self-use + +""" +Regression tests for https://github.com/PyCQA/pylint/issues/4633 +""" + +from queue import Queue +from unittest.mock import MagicMock + +mock = MagicMock(name="mock") + + +class Ham(mock.spam): + def __init__(self): + self.queue = Queue() + + +class SecondHam: + def whatever(self): + test_var = Ham() + while not test_var.queue.empty(): + pass |