diff --git a/requirements/doctests.txt b/requirements/doctests.txt index 96794a9afb460..919ee2d3a2672 100644 --- a/requirements/doctests.txt +++ b/requirements/doctests.txt @@ -1,2 +1,2 @@ -pytest ==8.3.5 +pytest ==8.4.0 pytest-doctestplus ==1.4.0 diff --git a/requirements/fabric/test.txt b/requirements/fabric/test.txt index 9035164ea1462..4d57af004884d 100644 --- a/requirements/fabric/test.txt +++ b/requirements/fabric/test.txt @@ -1,6 +1,6 @@ coverage ==7.8.2 numpy >=1.17.2, <1.27.0 -pytest ==8.3.5 +pytest ==8.4.0 pytest-cov ==6.1.1 pytest-timeout ==2.4.0 pytest-rerunfailures ==15.1 diff --git a/requirements/pytorch/test.txt b/requirements/pytorch/test.txt index fd4237ef74e66..2abb8cadd6772 100644 --- a/requirements/pytorch/test.txt +++ b/requirements/pytorch/test.txt @@ -1,5 +1,5 @@ coverage ==7.8.2 -pytest ==8.3.5 +pytest ==8.4.0 pytest-cov ==6.1.1 pytest-timeout ==2.4.0 pytest-rerunfailures ==15.1 diff --git a/tests/tests_pytorch/models/test_hparams.py b/tests/tests_pytorch/models/test_hparams.py index 3c7838f11a85a..f14d62b6befb4 100644 --- a/tests/tests_pytorch/models/test_hparams.py +++ b/tests/tests_pytorch/models/test_hparams.py @@ -250,8 +250,7 @@ def __init__(self, test_arg, test_arg2): model = LocalModel.load_from_checkpoint(raw_checkpoint_path, test_arg2=123) assert model.hparams.test_arg == 14 assert "test_arg2" not in model.hparams # test_arg2 is not registered in class init - - return raw_checkpoint_path + assert raw_checkpoint_path # -------------------------