Lines Matching refs:popen
1 """Basic tests for os.popen()
3 Particularly useful for platforms that fake popen.
10 if not hasattr(os, 'popen'):
11 raise unittest.SkipTest("need os.popen()")
28 with os.popen(cmd) as p:
34 self.assertRaises(TypeError, os.popen)
50 self.assertEqual(os.popen("exit 0").close(), None)
51 status = os.popen("exit 42").close()
58 with os.popen("echo hello") as f:
62 with os.popen("echo hello") as f:
66 with os.popen(cmd="exit 0", mode="w", buffering=-1):