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 0000000000..bd9502acd2 --- /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