Browse Source

Skip side-band-64k TCP server tests on windows if cgit not >= 1.9.3.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Gary van der Merwe 11 years ago
parent
commit
804f83afbd
1 changed files with 11 additions and 0 deletions
  1. 11 0
      dulwich/tests/compat/test_server.py

+ 11 - 0
dulwich/tests/compat/test_server.py

@@ -25,6 +25,7 @@ Warning: these tests should be fairly stable, but when writing/debugging new
 """
 
 import threading
+import os
 
 from dulwich.server import (
     DictBackend,
@@ -36,6 +37,7 @@ from dulwich.tests.compat.server_utils import (
     )
 from dulwich.tests.compat.utils import (
     CompatTestCase,
+    require_git_version,
     )
 
 
@@ -74,6 +76,15 @@ class GitServerSideBand64kTestCase(GitServerTestCase):
     # side-band-64k in git-receive-pack was introduced in git 1.7.0.2
     min_git_version = (1, 7, 0, 2)
 
+    def setUp(self):
+        super(GitServerSideBand64kTestCase, self).setUp()
+        # side-band-64k is broken in the widows client.
+        # https://github.com/msysgit/git/issues/101
+        # Fix has landed for the 1.9.3 release.
+        if os.name == 'nt':
+            require_git_version((1, 9, 3))
+
+
     def _handlers(self):
         return None  # default handlers include side-band-64k