changeset 19238:4122de8003e4

run-tests: don't need to test shebang any more
author Matt Mackall <mpm@selenic.com>
date Fri, 24 May 2013 13:02:00 -0500
parents 1bef6f99a12d
children db978c792b02
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Thu May 23 17:53:38 2013 -0500
+++ b/tests/run-tests.py	Fri May 24 13:02:00 2013 -0500
@@ -908,15 +908,9 @@
     err = os.path.join(TESTDIR, test+".err")
     if os.path.exists(err):
         os.remove(err)       # Remove any previous output files
-    try:
-        tf = open(testpath)
-        firstline = tf.readline().rstrip()
-        tf.close()
-    except IOError:
-        firstline = ''
     lctest = test.lower()
 
-    if lctest.endswith('.py') or firstline == '#!/usr/bin/env python':
+    if lctest.endswith('.py'):
         runner = pytest
     elif lctest.endswith('.t'):
         runner = tsttest