blob: bd9502acd2d8b5ac42df6afdb2d2491f4cceaba1 (
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,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
|