Exemple #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"))
Exemple #2
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"))