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>
changeset32d122da03fc
branchdefault
phasepublic
hiddenno
parent revision#91859aaa92e0 [test] Fix broken unittest_configuration.py:ConfigurationTC.test_round_trip
child revision#2df08b0202e1 shellutils: fix tempfile issue in Execute, and deprecate it, #9c28b5b35b38 Remove pdf_ext module (closes #207561), #057db3fff7a9 [configuration] extract a YAML-friendly build_config_struct function from generate_config (closes #204933), #e8c83dbeb177 shellutils: fix tempfile issue in Execute, and deprecate it, #499cc85cf94e [configuration] extract a YAML-friendly build_config_struct function from generate_config (closes #204933)
files modified by this revision
ChangeLog
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 32d122da03fc5d536d0ed6aa5f73fd775a24c935
# Parent 91859aaa92e0db4f2942292eaea5e864ec058f5b
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/ChangeLog b/ChangeLog
@@ -1,10 +1,12 @@
1  ChangeLog for logilab.common
2  ============================
3 
4  --
5 -   * graph: ensure output is orderd on node and graph ids (#202314)
6 +   * pytest: use 'env' to run the python interpreter
7 +
8 +   * graph: ensure output is ordered on node and graph ids (#202314)
9 
10 
11  2013-16-12  --  0.60.1
12      * modutils:
13 
diff --git a/bin/pytest b/bin/pytest
@@ -1,6 +1,6 @@
14 -#!/usr/bin/python -u
15 +#!/usr/bin/env python
16 
17  import warnings
18  warnings.simplefilter('default', DeprecationWarning)
19 
20  from logilab.common.pytest import run