tests/run-tests.py
branchstable
changeset 1226 0dd96ff409e9
parent 1224 f3c19de4b29c
child 1227 afafc1812f7b
--- a/tests/run-tests.py	Fri May 03 15:18:21 2013 -0700
+++ 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