Selaa lähdekoodia

Call super().setUp() from all setUp methods.

Gary van der Merwé 10 vuotta sitten
vanhempi
commit
e47905584e

+ 1 - 0
dulwich/tests/test_hooks.py

@@ -37,6 +37,7 @@ from dulwich.tests import TestCase
 class ShellHookTests(TestCase):
 
     def setUp(self):
+        super(ShellHookTests, self).setUp()
         if os.name != 'posix':
             self.skipTest('shell hook tests requires POSIX shell')
 

+ 1 - 1
dulwich/tests/test_porcelain.py

@@ -45,7 +45,7 @@ from dulwich.tests.utils import (
 class PorcelainTestCase(TestCase):
 
     def setUp(self):
-        super(TestCase, self).setUp()
+        super(PorcelainTestCase, self).setUp()
         repo_dir = tempfile.mkdtemp()
         self.addCleanup(shutil.rmtree, repo_dir)
         self.repo = Repo.init(repo_dir)

+ 1 - 0
dulwich/tests/test_server.py

@@ -211,6 +211,7 @@ class UploadPackHandlerTestCase(TestCase):
 class FindShallowTests(TestCase):
 
     def setUp(self):
+        super(FindShallowTests, self).setUp()
         self._store = MemoryObjectStore()
 
     def make_commit(self, **attrs):