diff options
author | Ran Benita <ran@unusedvar.com> | 2020-04-17 16:05:43 +0300 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-04-24 18:54:46 +0300 |
commit | 907e29a47b666067af4e64eb694d71cf72f61591 (patch) | |
tree | f4c475ef6e90b8ceb5e0ac9a663b1b3130458f78 /testing/deprecated_test.py | |
parent | 7d5f5a878598aaa7f3e100ef6a97bcd13c1b408d (diff) | |
download | pytest-907e29a47b666067af4e64eb694d71cf72f61591.tar.gz |
fixtures: deprecate pytest._fillfuncargs function
This function is exposed and kept alive for the oejskit plugin which is
abandoned and no longer works with recent plugins, so let's prepare to
completely remove it.
Diffstat (limited to 'testing/deprecated_test.py')
-rw-r--r-- | testing/deprecated_test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/deprecated_test.py b/testing/deprecated_test.py index cf7dee854..caa44854f 100644 --- a/testing/deprecated_test.py +++ b/testing/deprecated_test.py @@ -1,4 +1,5 @@ import inspect +from unittest import mock import pytest from _pytest import deprecated @@ -146,3 +147,11 @@ def test_noprintlogs_is_deprecated_ini(testdir): ) assert_no_print_logs(testdir, ()) + + +def test__fillfuncargs_is_deprecated() -> None: + with pytest.warns( + pytest.PytestDeprecationWarning, + match="The `_fillfuncargs` function is deprecated", + ): + pytest._fillfuncargs(mock.Mock()) |