Mercurial > hg > fail
diff fail.py @ 2:d1880117acb5
attempt to correct documentation display on pypi
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 23 Aug 2016 14:58:00 -0700 |
parents | a4680e54c481 |
children | 8dc420754023 |
line wrap: on
line diff
--- a/fail.py Tue Aug 23 13:57:20 2016 -0700 +++ b/fail.py Tue Aug 23 14:58:00 2016 -0700 @@ -29,13 +29,15 @@ ctr = 0 while True: - print ("Iteration {}".format(ctr)) ctr += 1 # run it process = subprocess.Popen(options.command, shell=True) _, _ = process.communicate() + + print ("Iteration {}".format(ctr)) + # test it if process.returncode not in options.codes: sys.exit(process.returncode)