equal
deleted
inserted
replaced
858 os.remove(err) # Remove any previous output files |
858 os.remove(err) # Remove any previous output files |
859 try: |
859 try: |
860 tf = open(testpath) |
860 tf = open(testpath) |
861 firstline = tf.readline().rstrip() |
861 firstline = tf.readline().rstrip() |
862 tf.close() |
862 tf.close() |
863 except: |
863 except IOError: |
864 firstline = '' |
864 firstline = '' |
865 lctest = test.lower() |
865 lctest = test.lower() |
866 |
866 |
867 if lctest.endswith('.py') or firstline == '#!/usr/bin/env python': |
867 if lctest.endswith('.py') or firstline == '#!/usr/bin/env python': |
868 runner = pytest |
868 runner = pytest |
1185 os.environ['COLUMNS'] = '80' |
1185 os.environ['COLUMNS'] = '80' |
1186 os.environ['GREP_OPTIONS'] = '' |
1186 os.environ['GREP_OPTIONS'] = '' |
1187 os.environ['http_proxy'] = '' |
1187 os.environ['http_proxy'] = '' |
1188 os.environ['no_proxy'] = '' |
1188 os.environ['no_proxy'] = '' |
1189 os.environ['NO_PROXY'] = '' |
1189 os.environ['NO_PROXY'] = '' |
|
1190 os.environ['TERM'] = 'xterm' |
1190 |
1191 |
1191 # unset env related to hooks |
1192 # unset env related to hooks |
1192 for k in os.environ.keys(): |
1193 for k in os.environ.keys(): |
1193 if k.startswith('HG_'): |
1194 if k.startswith('HG_'): |
1194 # can't remove on solaris |
1195 # can't remove on solaris |