replace the SkipTest class with e.g. the one from testtools).
import tempfile
from dulwich.pack import (
- Pack,
write_pack,
)
from dulwich.tests.test_pack import (
"""
import threading
-import unittest
-
-import nose
from dulwich import server
from server_utils import (
)
from utils import (
CompatTestCase,
+ SkipTest,
)
return port
def test_push_to_dulwich(self):
- raise nose.SkipTest('Skipping push test due to known deadlock bug.')
+ raise SkipTest('Skipping push test due to known deadlock bug.')
On *nix, you can kill the tests with Ctrl-Z, "kill %".
"""
-import sys
import threading
-import unittest
from wsgiref import simple_server
-import nose
-
-from dulwich.repo import (
- Repo,
- )
from dulwich.server import (
GitBackend,
)
HTTPGitApplication,
)
-from dulwich.tests.utils import (
- open_repo,
- tear_down_repo,
- )
from server_utils import (
ServerTests,
ShutdownServerMixIn,
)
from utils import (
CompatTestCase,
+ SkipTest,
)
def test_push_to_dulwich(self):
# TODO(dborowitz): enable after merging thin pack fixes.
- raise nose.SkipTest('Skipping push test due to known pack bug.')
+ raise SkipTest('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 nose.SkipTest('Dumb web pushing not supported.')
+ raise SkipTest('Dumb web pushing not supported.')
import tempfile
import unittest
-import nose
+# 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.utils import open_repo
_DEFAULT_GIT = 'git'
if found_version < required_version:
required_version = '.'.join(map(str, required_version))
found_version = '.'.join(map(str, found_version))
- raise nose.SkipTest('Test requires git >= %s, found %s' %
+ raise SkipTest('Test requires git >= %s, found %s' %
(required_version, found_version))