Jelmer Vernooij пре 10 година
родитељ
комит
edcddc85fc
3 измењених фајлова са 2 додато и 13 уклоњено
  1. 1 4
      dulwich/tests/test_client.py
  2. 1 5
      dulwich/tests/test_greenthreads.py
  3. 0 4
      dulwich/tests/test_server.py

+ 1 - 4
dulwich/tests/test_client.py

@@ -21,10 +21,6 @@ import sys
 import shutil
 import tempfile
 
-try:
-    from unittest import skipIf
-except ImportError:
-    from unittest2 import skipIf
 
 from dulwich import (
     client,
@@ -60,6 +56,7 @@ from dulwich.repo import (
     MemoryRepo,
     Repo,
     )
+from dulwich.tests import skipIf
 from dulwich.tests.utils import (
     open_repo,
     skipIfPY3,

+ 1 - 5
dulwich/tests/test_greenthreads.py

@@ -22,6 +22,7 @@
 import time
 
 from dulwich.tests import (
+    skipIf,
     TestCase,
     )
 from dulwich.object_store import (
@@ -35,11 +36,6 @@ from dulwich.objects import (
     parse_timezone,
     )
 
-try:
-    from unittest import skipIf
-except ImportError:
-    from unittest2 import skipIf
-
 try:
     import gevent
     gevent_support = True

+ 0 - 4
dulwich/tests/test_server.py

@@ -28,10 +28,6 @@ from dulwich.errors import (
     UnexpectedCommandError,
     HangupException,
     )
-from dulwich.objects import (
-    Commit,
-    Tag,
-    )
 from dulwich.object_store import (
     MemoryObjectStore,
     )