Use 'env' to run the interpreter.

The drawback is that we cannot use the unbuffered outputs (-u) but I am not so sure it is an issue.

authorChristophe de Vienne <cdevienne@gmail.com>
changeset245abb4e495d
branchdefault
phasedraft
hiddenyes
parent revision#e9fc9f452231 merge default heads
child revision<not specified>
files modified by this revision
bin/pytest
# HG changeset patch
# User Christophe de Vienne <cdevienne@gmail.com>
# Date 1384362715 -3600
# Wed Nov 13 18:11:55 2013 +0100
# Node ID 245abb4e495d6b61fd38ef5de77a1c5de0877eef
# Parent e9fc9f4522317c21d543a41a4f630d5fb3142e8f
Use 'env' to run the interpreter.

The drawback is that we cannot use the unbuffered outputs (-u) but I am not so sure it is an issue.

diff --git a/bin/pytest b/bin/pytest
@@ -1,6 +1,6 @@
1 -#!/usr/bin/python -u
2 +#!/usr/bin/env python
3 
4  import warnings
5  warnings.simplefilter('default', DeprecationWarning)
6 
7  from logilab.common.pytest import run