Skip to content

Commit

Permalink
fix: type error match sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
sihyeong671 committed Sep 18, 2023
1 parent e23f746 commit b5d358a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/ignite/handlers/test_param_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ def test_cyclical_scheduler_asserts():
tensor = torch.zeros([1], requires_grad=True)
optimizer = torch.optim.SGD([tensor], lr=0)

with pytest.raises(
TypeError, match="Can't instantiate abstract class CyclicalScheduler with abstract methods _get_cycle_param"
):
with pytest.raises(TypeError, match="Can't instantiate abstract class CyclicalScheduler"):
CyclicalScheduler({}, "lr", 0.0, 1.0, 10)


Expand Down

0 comments on commit b5d358a

Please sign in to comment.