blob: b2a8f7c907d04c4e8927775796fdc899b6a3b91e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# pylint: disable=missing-docstring,too-few-public-methods
"""
Regression tests for https://github.com/pylint-dev/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
|