From a4ce897d28604b52a3babf0bb49c61e074acbed2 Mon Sep 17 00:00:00 2001 From: Xavier Ordoquy Date: Wed, 16 Dec 2015 13:27:40 +0100 Subject: [PATCH] Display py.test internal warnings --- runtests.py | 4 ++-- tox.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtests.py b/runtests.py index 504cd1d37..a7e8b45a9 100755 --- a/runtests.py +++ b/runtests.py @@ -8,8 +8,8 @@ import sys import pytest PYTEST_ARGS = { - 'default': ['tests', '--tb=short', '-s'], - 'fast': ['tests', '--tb=short', '-q', '-s'], + 'default': ['tests', '--tb=short', '-s', '-rw'], + 'fast': ['tests', '--tb=short', '-q', '-s', '-rw'], } FLAKE8_ARGS = ['rest_framework', 'tests', '--ignore=E501'] diff --git a/tox.ini b/tox.ini index a027fa0de..93e642f37 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,7 @@ envlist = {py27,py34,py35}-django{19} [testenv] -commands = ./runtests.py --fast {posargs} --coverage +commands = ./runtests.py --fast {posargs} --coverage -rw setenv = PYTHONDONTWRITEBYTECODE=1 deps =