Change deprecated_call to handle FutureWarning (#11448)

Fixes #11447
This commit is contained in:
Chris Mahoney
2023-09-18 22:34:05 +10:00
committed by GitHub
parent 8b7f94f145
commit 8062743f6b
3 changed files with 6 additions and 4 deletions

View File

@@ -192,7 +192,7 @@ class TestDeprecatedCall:
f()
@pytest.mark.parametrize(
"warning_type", [PendingDeprecationWarning, DeprecationWarning]
"warning_type", [PendingDeprecationWarning, DeprecationWarning, FutureWarning]
)
@pytest.mark.parametrize("mode", ["context_manager", "call"])
@pytest.mark.parametrize("call_f_first", [True, False])
@@ -221,7 +221,6 @@ class TestDeprecatedCall:
UserWarning,
SyntaxWarning,
RuntimeWarning,
FutureWarning,
ImportWarning,
UnicodeWarning,
]