Skip to content

Commit 86e3492

Browse files
committed
Skip pt 2.1 tests incompatible with new jsonargparse
1 parent 2695a3e commit 86e3492

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/tests_pytorch/test_cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,7 @@ def add_arguments_to_parser(self, parser):
754754

755755

756756
@_xfail_python_ge_3_11_9
757+
@RunIf(min_torch="2.2")
757758
@pytest.mark.parametrize("use_generic_base_class", [False, True])
758759
def test_lightning_cli_optimizers_and_lr_scheduler_with_link_to(use_generic_base_class):
759760
class MyLightningCLI(LightningCLI):
@@ -801,6 +802,7 @@ def __init__(self, optim1: dict, optim2: dict, scheduler: dict):
801802

802803

803804
@_xfail_python_ge_3_11_9
805+
@RunIf(min_torch="2.2")
804806
def test_lightning_cli_optimizers_and_lr_scheduler_with_callable_type():
805807
class TestModel(BoringModel):
806808
def __init__(

0 commit comments

Comments
 (0)