1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-07-05 05:50:16 +02:00
Files
pg_probackup/tests/class_check.py
Grigory Smolkin 262f1ab410 test fixes
2017-05-03 18:05:19 +03:00

25 lines
472 B
Python

class Base(object):
def __init__(self):
self.a = 10
def func(self, arg1, arg2):
print 'Child {0}, a = {1}'.format(arg1, arg2)
class ChildA(Base):
def __init__(self):
Base.__init__(self)
b = 5
c = b + self.a
print 'Child A, a = {0}'.format(c)
class ChildB(Base):
def __init__(self):
super(ChildB, self).__init__()
b = 6
c = b + self.a
self.func('B', c)
#ChildA()
ChildB()