File: subclassing.py

package info (click to toggle)
python-venusian 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 472 kB
  • sloc: python: 1,362; makefile: 73
file content (18 lines) | stat: -rw-r--r-- 316 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from tests.fixtures import decorator


class Super(object):  # pragma: no cover
    @decorator()
    def classname(self):
        pass

    @decorator()
    def boo(self):
        pass


# the Sub class must not inherit the decorations of its superclass when scanned


class Sub(Super):  # pragma: no cover
    pass