Просмотр исходного кода

remote: pragma: no cover for the stuff we can't test

Thomas Waldmann 9 лет назад
Родитель
Сommit
8300efb1db
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      borg/remote.py

+ 2 - 2
borg/remote.py

@@ -28,7 +28,7 @@ class InvalidRPCMethod(Error):
     """RPC method is not valid"""
 
 
-class RepositoryServer:
+class RepositoryServer:  # pragma: no cover
     rpc_methods = (
         '__len__',
         'check',
@@ -129,7 +129,7 @@ class RemoteRepository:
         umask = ['--umask', '%03o' % self.umask]
         if location.host == '__testsuite__':
             args = [sys.executable, '-m', 'borg.archiver', 'serve'] + umask + self.extra_test_args
-        else:
+        else:  # pragma: no cover
             args = ['ssh']
             if location.port:
                 args += ['-p', str(location.port)]