コード例 #1
0
ファイル: test_run.py プロジェクト: seomoz/shovel
 def logs(self, pth, *args, **kwargs):
     with Path(pth):
         with logs() as out:
             shovel.run(*args, **kwargs)
         return [
             line.strip() for line in out.getvalue().strip().split('\n')
         ]
コード例 #2
0
ファイル: test_run.py プロジェクト: seomoz/shovel
 def stderr(self, pth, *args, **kwargs):
     with Path(pth):
         with capture('stderr') as out:
             shovel.run(*args, **kwargs)
         return [
             line.strip() for line in out.getvalue().strip().split('\n')
         ]
コード例 #3
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def logs(self, pth, *args, **kwargs):
     with path(pth):
         with logs() as out:
             shovel.run(*args, **kwargs)
         return [line.strip() for line in
             out.getvalue().strip().split('\n')]
コード例 #4
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def stderr(self, pth, *args, **kwargs):
     with path(pth):
         with capture('stderr') as out:
             shovel.run(*args, **kwargs)
         return [line.strip() for line in
             out.getvalue().strip().split('\n')]