summaryrefslogtreecommitdiff
path: root/tests/unittests/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2015-01-26 20:05:48 -0500
committerBarry Warsaw <barry@python.org>2015-01-26 20:05:48 -0500
commite2cfd12dc79a6350d9f1f3111a15bdb6666ccad7 (patch)
treeed032085bedc0da121ea431e19bdb8f041cf9c68 /tests/unittests/helpers.py
parent5e2b8ef0703eb4582a5a8ba50ae7c83a8294d65a (diff)
downloadvyos-cloud-init-e2cfd12dc79a6350d9f1f3111a15bdb6666ccad7.tar.gz
vyos-cloud-init-e2cfd12dc79a6350d9f1f3111a15bdb6666ccad7.zip
super() works in all of Python 2.6, 2.7, and 3.4.
Diffstat (limited to 'tests/unittests/helpers.py')
-rw-r--r--tests/unittests/helpers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unittests/helpers.py b/tests/unittests/helpers.py
index 424d0626..f92e7ac2 100644
--- a/tests/unittests/helpers.py
+++ b/tests/unittests/helpers.py
@@ -43,7 +43,7 @@ if PY26:
# all this once Python 2.6 is dropped as a minimum requirement.
class TestCase(unittest.TestCase):
def setUp(self):
- unittest.TestCase.setUp(self)
+ super(TestCase, self).setUp()
self.__all_cleanups = ExitStack()
def tearDown(self):
@@ -147,7 +147,7 @@ def retarget_many_wrapper(new_base, am, old_func):
class ResourceUsingTestCase(TestCase):
def setUp(self):
- TestCase.setUp(self)
+ super(ResourceUsingTestCase, self).setUp()
self.resource_path = None
def resourceLocation(self, subname=None):
@@ -186,7 +186,7 @@ class ResourceUsingTestCase(TestCase):
class FilesystemMockingTestCase(ResourceUsingTestCase):
def setUp(self):
- ResourceUsingTestCase.setUp(self)
+ super(FilesystemMockingTestCase, self).setUp()
self.patched_funcs = ExitStack()
def tearDown(self):