瀏覽代碼

Merge pull request #962 from mgorny/gentoo-paramiko-server

Explicitly reenable paramiko server on Gentoo for tests
Jelmer Vernooij 2 年之前
父節點
當前提交
5a5c67ceb2
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      dulwich/contrib/test_paramiko_vendor.py

+ 6 - 0
dulwich/contrib/test_paramiko_vendor.py

@@ -122,6 +122,12 @@ class Server(paramiko.ServerInterface):
 class ParamikoSSHVendorTests(TestCase):
 
     def setUp(self):
+        import paramiko.transport
+
+        # reenable server functionality for tests
+        if hasattr(paramiko.transport, "SERVER_DISABLED_BY_GENTOO"):
+            paramiko.transport.SERVER_DISABLED_BY_GENTOO = False
+
         self.commands = []
         socket.setdefaulttimeout(10)
         self.addCleanup(socket.setdefaulttimeout, None)