skeleton/test/pytestconf.py
changeset 10214 88f60d4b9952
parent 7693 e2f75311d7be
equal deleted inserted replaced
10213:e53cc2182cf8 10214:88f60d4b9952
    11 # CubicWeb is distributed in the hope that it will be useful, but WITHOUT
    11 # CubicWeb is distributed in the hope that it will be useful, but WITHOUT
    12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
    14 # details.
    14 # details.
    15 #
    15 #
    16 # You should have received a copy of the GNU Lesser General Public License along
    16 # You should have received a copy of the GNU Lesser General Public License
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # along with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 """
    18 """
    19 
    19 
    20 """
    20 """
    21 import os
    21 import os
    22 import sys
    22 import sys
    23 
    23 
    24 from logilab.common.pytest import PyTester
    24 from logilab.common.pytest import PyTester
       
    25 
    25 
    26 
    26 def getlogin():
    27 def getlogin():
    27     """avoid usinng os.getlogin() because of strange tty / stdin problems
    28     """avoid usinng os.getlogin() because of strange tty / stdin problems
    28     (man 3 getlogin)
    29     (man 3 getlogin)
    29     Another solution would be to use $LOGNAME, $USER or $USERNAME
    30     Another solution would be to use $LOGNAME, $USER or $USERNAME