summaryrefslogtreecommitdiff
path: root/tests/plugins/loading/plugins/setupreturnsbadtype/setupreturnsbadtype.py
blob: 25795c06bfba4eb6a898ff79ed4fe4ca1209f548 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# A plugin's setup symbol is supposed to be a function
# which returns the plugin type, which should be a subclass
# of Source or Element depending on the plugin type.
#
# This plugin's setup function returns a different kind
# of type.


class Pony:
    def __init__(self):
        self.pony = 12


def setup():
    return Pony