diff --git a/ignite/contrib/handlers/custom_events.py b/ignite/contrib/handlers/custom_events.py index 32692889699..7eaa65863d5 100644 --- a/ignite/contrib/handlers/custom_events.py +++ b/ignite/contrib/handlers/custom_events.py @@ -54,7 +54,6 @@ def on_every_10_epochs(engine): """ def __init__(self, n_iterations=None, n_epochs=None): - warnings.warn( "CustomPeriodicEvent is deprecated since 0.4.0 and will be removed in 0.4.14. Use filtered events instead.", DeprecationWarning, diff --git a/tests/ignite/contrib/handlers/test_custom_events.py b/tests/ignite/contrib/handlers/test_custom_events.py index 9686c707141..90decc1e298 100644 --- a/tests/ignite/contrib/handlers/test_custom_events.py +++ b/tests/ignite/contrib/handlers/test_custom_events.py @@ -7,7 +7,6 @@ def test_bad_input(): - with pytest.warns(DeprecationWarning, match=r"CustomPeriodicEvent is deprecated"): with pytest.raises(TypeError, match="Argument n_iterations should be an integer"): CustomPeriodicEvent(n_iterations="a") diff --git a/tests/ignite/contrib/handlers/test_tqdm_logger.py b/tests/ignite/contrib/handlers/test_tqdm_logger.py index d99f5e78264..81522b1d0a6 100644 --- a/tests/ignite/contrib/handlers/test_tqdm_logger.py +++ b/tests/ignite/contrib/handlers/test_tqdm_logger.py @@ -469,7 +469,6 @@ def test_pbar_wrong_events_order(): def test_pbar_on_custom_events(capsys): - engine = Engine(update_fn) pbar = ProgressBar() with pytest.warns(DeprecationWarning, match="CustomPeriodicEvent is deprecated"):