comparison 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
comparison
equal deleted inserted replaced
1:a4680e54c481 2:d1880117acb5
27 try: 27 try:
28 28
29 ctr = 0 29 ctr = 0
30 while True: 30 while True:
31 31
32 print ("Iteration {}".format(ctr))
33 ctr += 1 32 ctr += 1
34 33
35 # run it 34 # run it
36 process = subprocess.Popen(options.command, shell=True) 35 process = subprocess.Popen(options.command, shell=True)
37 _, _ = process.communicate() 36 _, _ = process.communicate()
37
38
39 print ("Iteration {}".format(ctr))
38 40
39 # test it 41 # test it
40 if process.returncode not in options.codes: 42 if process.returncode not in options.codes:
41 sys.exit(process.returncode) 43 sys.exit(process.returncode)
42 44