blob: 8f710a226bdb24845c50ae45e610f8b4583d460c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
"""
Check that instantiating a class with `abc.ABCM` as ancestor fails if it
defines abstract methods.
"""
# pylint: disable=too-few-public-methods, missing-docstring, abstract-class-not-used, no-init
__revision__ = 0
import abc
class BadClass(abc.ABC):
@abc.abstractmethod
def test(self):
pass
def main():
""" do nothing """
BadClass() # [abstract-class-instantiated]
|