Skip to content

Commit 5c0168d

Browse files
Add a regression test for issue #4633
1 parent 0f6a38e commit 5c0168d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# pylint: disable=missing-docstring,too-few-public-methods,no-self-use
2+
3+
"""
4+
Regression tests for https://github.com/PyCQA/pylint/issues/4633
5+
"""
6+
7+
from queue import Queue
8+
from unittest.mock import MagicMock
9+
10+
mock = MagicMock(name="mock")
11+
12+
13+
class Ham(mock.spam):
14+
def __init__(self):
15+
self.queue = Queue()
16+
17+
18+
class SecondHam:
19+
def whatever(self):
20+
test_var = Ham()
21+
while not test_var.queue.empty():
22+
pass

0 commit comments

Comments
 (0)