summaryrefslogtreecommitdiff
path: root/testing/deprecated_test.py
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-05-17 14:58:04 +0300
committerRan Benita <ran@unusedvar.com>2020-05-17 21:41:38 +0300
commit3f8200676f12846b74289f9b2e35747623fc768a (patch)
tree6a9f20628cd91f5c47a8784eaad4436792e1bca9 /testing/deprecated_test.py
parentbd5e3f042d9b38bc4b37bd4bbd477fcf76a87383 (diff)
downloadpytest-3f8200676f12846b74289f9b2e35747623fc768a.tar.gz
logging: remove deprecated --no-print-logs option/ini
This option was deprecated in 5.4.0 and was marked for removal in 6.0.0.
Diffstat (limited to 'testing/deprecated_test.py')
-rw-r--r--testing/deprecated_test.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/testing/deprecated_test.py b/testing/deprecated_test.py
index edd5505c0..93264f3fc 100644
--- a/testing/deprecated_test.py
+++ b/testing/deprecated_test.py
@@ -117,47 +117,6 @@ def test_node_direct_ctor_warning():
assert w[0].filename == __file__
-def assert_no_print_logs(testdir, args):
- result = testdir.runpytest(*args)
- result.stdout.fnmatch_lines(
- [
- "*--no-print-logs is deprecated and scheduled for removal in pytest 6.0*",
- "*Please use --show-capture instead.*",
- ]
- )
-
-
-@pytest.mark.filterwarnings("default")
-def test_noprintlogs_is_deprecated_cmdline(testdir):
- testdir.makepyfile(
- """
- def test_foo():
- pass
- """
- )
-
- assert_no_print_logs(testdir, ("--no-print-logs",))
-
-
-@pytest.mark.filterwarnings("default")
-def test_noprintlogs_is_deprecated_ini(testdir):
- testdir.makeini(
- """
- [pytest]
- log_print=False
- """
- )
-
- testdir.makepyfile(
- """
- def test_foo():
- pass
- """
- )
-
- assert_no_print_logs(testdir, ())
-
-
def test__fillfuncargs_is_deprecated() -> None:
with pytest.warns(
pytest.PytestDeprecationWarning,