コード例 #1
0
 def test_partial_read(self):
     p1 = InputPipeProcessWrapper(["bash", "/tmp/luigi_test_sigpipe.sh"])
     self.assertEqual(p1.readline(), "Welcome 1 times\n")
     p1.close()
     self.assertTrue(os.path.exists("/tmp/luigi_sigpipe.marker"))
コード例 #2
0
ファイル: test_sigpipe.py プロジェクト: RUNDSP/luigi
 def test_partial_read(self):
     p1 = InputPipeProcessWrapper(["bash", "/tmp/luigi_test_sigpipe.sh"])
     self.assertEqual(p1.readline(), "Welcome 1 times\n")
     p1.close()
     self.assertTrue(os.path.exists("/tmp/luigi_sigpipe.marker"))