diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2018-11-08 20:14:58 -0200 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2018-11-12 16:10:57 -0200 |
commit | dc20dedbc788bc41927612c9ca66b30cc614ecac (patch) | |
tree | ba42dc4c89611381e5c69402151fb17587bf86fe /testing/test_nose.py | |
parent | b1312147e0a6cef77e97cb80aeb9f0962115a401 (diff) | |
download | pytest-dc20dedbc788bc41927612c9ca66b30cc614ecac.tar.gz |
Change RemovedInPytest4Warnings to errors by default
To keep existing tests which emit RemovedInPytest4Warnings running, decided
to go with a command line option because:
* Is harder to integrate an ini option with tests which already use an ini file
* It also marks tests which need to be removed/updated in 4.1, when
RemovedInPytest4Warning and related functionality are removed.
Fix #3737
Diffstat (limited to 'testing/test_nose.py')
-rw-r--r-- | testing/test_nose.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/test_nose.py b/testing/test_nose.py index b2c724b8d..0af591b36 100644 --- a/testing/test_nose.py +++ b/testing/test_nose.py @@ -3,6 +3,7 @@ from __future__ import division from __future__ import print_function import pytest +from _pytest.warnings import SHOW_PYTEST_WARNINGS_ARG def setup_module(mod): @@ -224,7 +225,7 @@ def test_nose_test_generator_fixtures(testdir): eq_(self.called, expect) """ ) - result = testdir.runpytest(p, "-p", "nose") + result = testdir.runpytest(p, "-p", "nose", SHOW_PYTEST_WARNINGS_ARG) result.stdout.fnmatch_lines(["*10 passed*"]) |