#############################################################################
def test(p=0):
- print("\tOpening subprocess:")
- p = Subprocess('cat', 1) # set to expire noisily...
- print(p)
print("\tOpening bogus subprocess, should fail:")
try:
b = Subprocess('/', 1)
print("\tOops! Null-named subprocess startup *succeeded*?!?")
except SubprocessError:
print("\t...yep, it failed.")
+ print("\tOpening cat subprocess:")
+ p = Subprocess('cat', 1) # set to expire noisily...
+ print(p)
print('\tWrite, then read, two newline-teriminated lines, using readline:')
p.write('first full line written\n'); p.write('second.\n')
print(repr(p.readline()))