something nose-specific.
import unittest
+# XXX: Ideally we should allow other test runners as well,
+# but unfortunately unittest doesn't have a SkipTest/TestSkipped
+# exception.
+from nose import SkipTest as TestSkipped
def test_suite():
names = [
DictBackend,
TCPGitServer,
)
+from dulwich.tests import (
+ TestSkipped,
+ )
from server_utils import (
ServerTests,
ShutdownServerMixIn,
)
from utils import (
CompatTestCase,
- SkipTest,
)
return port
def test_push_to_dulwich(self):
- raise SkipTest('Skipping push test due to known deadlock bug.')
+ raise TestSkipped('Skipping push test due to known deadlock bug.')
from dulwich.server import (
DictBackend,
)
+from dulwich.tests import (
+ TestSkipped,
+ )
from dulwich.web import (
HTTPGitApplication,
)
)
from utils import (
CompatTestCase,
- SkipTest,
)
def test_push_to_dulwich(self):
# TODO(dborowitz): enable after merging thin pack fixes.
- raise SkipTest('Skipping push test due to known pack bug.')
+ raise TestSkipped('Skipping push test due to known pack bug.')
class DumbWebTestCase(WebTests, CompatTestCase):
def test_push_to_dulwich(self):
# Note: remove this if dumb pushing is supported
- raise SkipTest('Dumb web pushing not supported.')
+ raise TestSkipped('Dumb web pushing not supported.')
import tempfile
import unittest
-# XXX: Ideally we shouldn't depend on nose but allow other testrunners as well.
-from nose import SkipTest
-
from dulwich.repo import Repo
+from dulwich.tests import (
+ TestSkipped,
+ )
_DEFAULT_GIT = 'git'
if found_version < required_version:
required_version = '.'.join(map(str, required_version))
found_version = '.'.join(map(str, found_version))
- raise SkipTest('Test requires git >= %s, found %s' %
- (required_version, found_version))
+ raise TestSkipped('Test requires git >= %s, found %s' %
+ (required_version, found_version))
def run_git(args, git_path=_DEFAULT_GIT, input=None, capture_stdout=False,
import stat
import unittest
-import nose
-
from dulwich.objects import (
Blob,
Tree,
parse_tree,
_parse_tree_py,
)
+from dulwich.tests import (
+ TestSkipped,
+ )
a_sha = '6f670c0fb53f9463760b7295fbb814e965fb20c8'
b_sha = '2969be3e8ee1c0222396a5611407e4769f14e54b'
def test_parse_tree_extension(self):
if parse_tree is _parse_tree_py:
- raise nose.SkipTest('parse_tree extension not found')
+ raise TestSkipped('parse_tree extension not found')
self._do_test_parse_tree(parse_tree)