blob: 4dadef4373ebcdda5b977be7574a2bf30eb3cb7e (
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.ABCMeta` as ancestor fails if it
defines abstract methods.
"""
# pylint: disable=too-few-public-methods, missing-docstring, no-init
__revision__ = 0
import abc
class BadClass(abc.ABC):
@abc.abstractmethod
def test(self):
pass
def main():
""" do nothing """
BadClass() # [abstract-class-instantiated]
|