Selaa lähdekoodia

Make sure TestCase.setUp() is called, remove unused import.

Jelmer Vernooij 14 vuotta sitten
vanhempi
commit
e9d58380bb
2 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 3 1
      dulwich/tests/test_patch.py
  2. 1 1
      dulwich/tests/test_server.py

+ 3 - 1
dulwich/tests/test_patch.py

@@ -28,7 +28,9 @@ from dulwich.patch import (
     git_am_patch_split,
     write_commit_patch,
     )
-from dulwich.tests import TestCase
+from dulwich.tests import (
+    TestCase,
+    )
 
 
 class WriteCommitPatchTests(TestCase):

+ 1 - 1
dulwich/tests/test_server.py

@@ -29,7 +29,6 @@ from dulwich.repo import (
 from dulwich.server import (
     Backend,
     DictBackend,
-    BackendRepo,
     Handler,
     MultiAckGraphWalkerImpl,
     MultiAckDetailedGraphWalkerImpl,
@@ -142,6 +141,7 @@ class HandlerTestCase(TestCase):
 class UploadPackHandlerTestCase(TestCase):
 
     def setUp(self):
+        super(UploadPackHandlerTestCase, self).setUp()
         self._repo = MemoryRepo.init_bare([], {})
         backend = DictBackend({'/': self._repo})
         self._handler = UploadPackHandler(