Skip to content

Commit

Permalink
Fixed code formatting issue due to cherry-picked reverts
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 committed Oct 18, 2023
1 parent eb223cd commit 3474a62
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion ignite/contrib/handlers/custom_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion tests/ignite/contrib/handlers/test_custom_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 0 additions & 1 deletion tests/ignite/contrib/handlers/test_tqdm_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 3474a62

Please sign in to comment.