소스 검색

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

Thomas Waldmann 9 년 전
부모
커밋
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"""
     """RPC method is not valid"""
 
 
 
 
-class RepositoryServer:
+class RepositoryServer:  # pragma: no cover
     rpc_methods = (
     rpc_methods = (
         '__len__',
         '__len__',
         'check',
         'check',
@@ -129,7 +129,7 @@ class RemoteRepository:
         umask = ['--umask', '%03o' % self.umask]
         umask = ['--umask', '%03o' % self.umask]
         if location.host == '__testsuite__':
         if location.host == '__testsuite__':
             args = [sys.executable, '-m', 'borg.archiver', 'serve'] + umask + self.extra_test_args
             args = [sys.executable, '-m', 'borg.archiver', 'serve'] + umask + self.extra_test_args
-        else:
+        else:  # pragma: no cover
             args = ['ssh']
             args = ['ssh']
             if location.port:
             if location.port:
                 args += ['-p', str(location.port)]
                 args += ['-p', str(location.port)]